Programmatically add ApiDescription with JSON request body
See original GitHub issueWe are using Springfox 2.9.2. Our application has Spring Security enabled so I am wanting to advise Springfox of the authentication methods that our API exposes.
We have POJOs for both input and output for our authentication API, and the spring security layer handles conversion of these objects to/from JSON for the client. However these are not automatically added to the Swagger doc because they are not in a controller.
I’m trying to find out how to inject the request/response detail to the documentation. Based on this comment and related documentation page, I can see that I need to implement ApiListingScannerPlugin
to build the ApiDescription
. I can’t find any way to specify the request input/body, as the Swagger documentation describes.
Any info on how to manually expose these API details (and related request/response objects) would be greatly appreciated. Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (4 by maintainers)
Top GitHub Comments
I have similar problem when I adding global error response message.
Console log
This issue has been automatically closed because it has not had recent activity. Please re-open a new issue if this is still an issue.