Custom response and parameters for baucis swagger docs -


I see it is relatively easy to add docs to touch the UI for custom endpoint in bocis.

  var admin = baucis.rest ('user'); Controller: swagger.apis.push ({'path': '/ users / login', 'description': 'log in user', 'operation': [{'httpMethod': 'POST', 'nickname': ' 'Login', 'feedback clause': 'user', 'summary': 'user name and password token for requests'}]})  

However, in this case, I want to set the response class to {token: string} instead of 'user', and set the parameter to {username: string, password: string} so that 'try it!' Button works

Any ideas how would I go about this? Or if it could be possible in the box-sigger?

appears on top of the shape object

Criteria definitions add an object array, And a feedback definition object object for the above given solution resolves my problem


Comments