swaggerhub-cli icon indicating copy to clipboard operation
swaggerhub-cli copied to clipboard

Check if an api is publish/unpublish

Open jonassandqvist opened this issue 2 years ago • 1 comments

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

jonassandqvist avatar Feb 09 '24 09:02 jonassandqvist

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.

CalemRoelofsSB avatar Feb 09 '24 10:02 CalemRoelofsSB