swaggerhub-cli
swaggerhub-cli copied to clipboard
Check if an api is publish/unpublish
Is your feature request related to a problem? Please describe. In our piplines we want to fail if one tries to update a published api version
Describe the solution you'd like
One solution would be to add the command api:ispublished
swaggerhub api:ispublished OWNER/API_NAME/[VERSION]
Describe alternatives you've considered
Another solution would to add an argument to api:update to fail if the given api version is published
swaggerhub api:update OWNER/API_NAME/[VERSION] --fail-if-published
Hey @jonassandqvist, thank you for the feature request! We will take a look at this internally and get back to you here when it's been added.