Forum Discussion
alex-savage
4 years agoOccasional Contributor
Hi,
I believe that if you define a different code, that is all you need to do:
Example from SwaggerHub: https://app.swaggerhub.com/apis/djke073/director/1.0.0#/admins/updateJob
There is no 200 on the docs or code.
Is that what you are trying to achive?
- rishi_02014 years agoNew Contributor
let me add my scenario here - In my cases a POST endpoint is used to perform an action which means it may return a 201 instead of a 200. However by default the swagger configuration adds a 200 for every POST call.
- alex-savage4 years agoOccasional Contributor
Can you share your API definition or a URL please and Ill take a look if that helps?
Related Content
Recent Discussions
- 13 days agotobyclements