-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
default response code added #2854
Comments
In my case I could solve the issue by adding also a However I would have expected that: |
Could you just tell us how "adding @ResponseStatus(HttpStatus.ACCEPTED)" solves the issue for you ? Where do you add it ? and how adding a "HTTP 202" status code removes the "HTTP 200" which bothers you ? |
This is long ago, but given my examples I had the default code, which was not explicitly listed within the @ApiResponses. It just happened that after adding the For the place where I added it you just need to follow the referenced sabi ticket 37 above and the commit point which closed it. And yes one might think that HTTP-200 as default response code should be expected in APIs. |
Please take the time to search the repository, if your question has already been asked or answered.
What version of the library are you using? Is it the latest version?
What kind of issue is this?
steps to reproduce get fixed faster. Here’s an example:
This one here will also list an HTTP 200 as possible result in the generated swaggerdoc
Though I do suppress the generation of default codes:
See sabi
The text was updated successfully, but these errors were encountered: