guardian
guardian copied to clipboard
Expose swagger UI
Summary Expose swagger UI: It would be helpful to interact with the guardian server through API way if there's a swagger UI exposed through the grpc-gateway.
Proposed solution How will it benefit CLI and its users? CLI already has a help command set to work with. This feature request is specifically to enhance the usage of the API way.
This can be helpful in the dev and staging environments. But I think we should not expose this in a production environment. So, IMO it should be configurable.
This can also be extracted as a package in salt to make it reusable.
Swagger UI can be hosted anywhere provided the swagger file is available. We should make that public in the repo and swagger UI can read it and render it. IMO It shouldn't be added to the application code.
@AkarshSatija fair point. +1