You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using swagger-blocks to document my API. When attempting to execute I get an error because only the last parameter listed is sent in the curl request.
app/controllers/apidocs_controller.rb
parameter:logindokey:name,:loginkey:type,:stringkey:in,:bodykey:description,'login used when signing in'key:required,trueendparameter:emaildokey:name,:emailkey:type,:stringkey:in,:bodykey:description,'email address associated with the new user'key:required,trueendparameter:passworddokey:name,:passwordkey:type,:stringkey:in,:bodykey:description,'password the user signs in with'key:required,trueend
app/controllers/api/v1/users_controller.rb
swagger_path'/users'dooperation:postdokey:summary,'Create a User'key:description,'Creates a User'key:operation,'createUser'key:tags,['user']parameter:loginparameter:emailparameter:passwordresponse200dokey:description,'create user response'schemadokey:'$ref',:CreateUserendendresponse:defaultdokey:description,'unexpected error'schemadokey:'$ref',:ErrorModelendendendend
I'm using swagger-blocks to document my API. When attempting to execute I get an error because only the last parameter listed is sent in the curl request.
app/controllers/apidocs_controller.rb
app/controllers/api/v1/users_controller.rb
generated curl request
curl -X POST "https://api.website.local:3000/users" -H "accept: application/json" -H "Content-Type: application/json" -d "somepassword"
The text was updated successfully, but these errors were encountered: