swaggerhub-gradle-plugin
swaggerhub-gradle-plugin copied to clipboard
Mark as default and published
I wanted to use the plugin to push our api schema to SwaggerHub. This is done automatically within a Jenkins build pipeline. In addition to pushing, I also want to mark the version as "published" and "default".
Via API calls I can achieve this with the following endpoints:
- https://app.swaggerhub.com/apis-docs/swagger-hub/registry-api/1.0.66#/APIs/setApiDefaultVersion
- https://app.swaggerhub.com/apis-docs/swagger-hub/registry-api/1.0.66#/APIs/setLifecycleSettings
Is it also possible to set these options within the plugin?
Thank you