Forum Discussion
alex-savage
Occasional 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_0201
5 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-savage5 years agoOccasional Contributor
Can you share your API definition or a URL please and Ill take a look if that helps?
Related Content
- 10 months ago
- 5 years ago
Recent Discussions
- 16 days ago
- 2 months ago