richhollis / swagger-docs

Generates swagger-ui json files for Rails APIs with a simple DSL.
MIT License
750 stars 150 forks source link

Multiple params in get request #153

Closed techverx closed 7 years ago

techverx commented 8 years ago

can we send multiple parameters in get request. param :query, :auth_token, :strig, :required, "Auth token" param :path, :nested_id, :integer, :required, "Team Id" it show two fileds but request only take query parameters, it is not sending nested_id along with request. i have to send liks auth_token="asss" &id=3 in get request. Anybody can help?

myeung58 commented 7 years ago

Seems like you're trying to put both auth_token and id in a query string? Try this:

param :query, :auth_token, :string, :required, "Auth token"
param :query, :id, :integer, :required, "Team Id"
techverx commented 7 years ago

thanks