swaggerhub-gradle-plugin icon indicating copy to clipboard operation
swaggerhub-gradle-plugin copied to clipboard

Mark as default and published

Open romanbruehlmann opened this issue 1 year ago • 0 comments

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

romanbruehlmann avatar Nov 23 '23 12:11 romanbruehlmann