Forum Discussion
- alex-savageOccasional 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_0201New 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-savageOccasional Contributor
Can you share your API definition or a URL please and Ill take a look if that helps?
Related Content
- 5 years ago
Recent Discussions
- 22 days ago
- 22 days ago