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
Suppose i want to add example response for code 200.Currently i am not able to do that.I have to pass model,what if i you could add example key in response which will contain json and that will interpret as it is .
Example
Suppose i want to add example response for code 200.Currently i am not able to do that.I have to pass model,what if i you could add example key in response which will contain json and that will interpret as it is .
Example
responses: { 200: { description: "Success", type: SwaggerDefinitionConstant.Response.Type.OBJECT, example:{ "data": [{ "type": "articles", "id": "1", "attributes": { "title": "JSON:API paints my bikeshed!", "body": "The shortest article. Ever.", "created": "2015-05-22T14:56:29.000Z", "updated": "2015-05-22T14:56:28.000Z" }, "relationships": { "author": { "data": {"id": "42", "type": "people"} } } }], "included": [ { "type": "people", "id": "42", "attributes": { "name": "John", "age": 80, "gender": "male" } } ] } } },
The text was updated successfully, but these errors were encountered: