PR: OpenAPI Export and Swagger UI Support for Golem API Definitions Closes #1178 /claim #1178
This PR provides OpenAPI export functionality and Swagger UI (Binding and CLI) support. Specifically, this PR implements:
/v1/api-definitions/{id}/{version}/export
endpoint to export API Definitions to OpenAPI Specifications.golem-cli
needs to be updated with:
golem-cli api-definition swagger
subcommand for launching a browser to a generated Swagger UI.golem-cli api-definition export
subcommand to export an API definition to an OpenAPI schema.System test and verify they interact correctly with the SWAGGER UI (Might not be possible currently all deployment tests fail.)
You can try this out, after building, by creating a new route with bindingtype swagger-ui
, with path without any varriables, example /swagger
. If deployed to localhost:9006, you will find your swagger ui there.
Your feedback is appreciated! While I work on the remaining task.
Ajay RV
@Nanashi-lab
Golem Cloud
@golemcloud