We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Maybe a stupid newbie question: I defined an action like this:
api :show, 'return a single instance' do param :path, :id, Integer, :req, range: { gt: 0}, desc: 'instance id' resp 200, 'success', :json, data: :Instance end`
I wanted to define the param in a component such as:
components do param :instance_id => [ :path, id: {type: Integer}, desc: 'test'] end
Which gives a syntax error. Could you please give me a hint, how to define a path parameter in a components section?
Best regards,
Udo Eisenbarth
The text was updated successfully, but these errors were encountered:
Something similar we have:
components do query :UserIdQry => [:user_id, String, desc: 'the user identifier'] end
and
api :index, "Description.", id: 'getData' do param_ref :UserIdQry end
Sorry, something went wrong.
No branches or pull requests
Hi,
Maybe a stupid newbie question: I defined an action like this:
I wanted to define the param in a component such as:
Which gives a syntax error. Could you please give me a hint, how to define a path parameter in a components section?
Best regards,
Udo Eisenbarth
The text was updated successfully, but these errors were encountered: