rest - Defining an API with swagger: GET call that uses JSON in parameters -


i trying create proper, rest api, , document swagger (2.0).

so, have api call query, ie, makes no changes , doesn't create (idempotent , safe). requires passing in complex json parameter (list of items, 2 or 3 sets of addresses, etc). i'm doing parameter thats url encoded json. seems proper way it.

i see api's post reason, that's incorrect use of post verb.

i'm seeing lots of swagger api's this...

i can't figure out if there's way proper rest api swagger, using json parameter. can define parameter string, of course, , pass encoded json it, swagger tooling doesn't understand there's schema/definition it.

is swagger not able document kind of call?

i'm working on defining form parameters url-encoded json objects , facing same situation yours.

thoroughly going through swagger specs tell not supported yet, required rest apis.

also, can't define schema such object.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -