0

I am using springfox for generating Swagger API documentation for REST APIs exposed by a spring boot application.

I need to add documentation for an API manually for which there is no REST controller, technically. How can I manually add to the Swagger API documentation? I want to do it once from the code.

Soumya Kanti
  • 1,429
  • 1
  • 17
  • 28

1 Answers1

1

You can create it using plugins mechanism. Create ApiListingScannerPlugin to dynamic added ApiDescription and OperationModelsProviderPlugin to dynamic added Definitions

Anton Leliuk
  • 46
  • 1
  • 5