-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels