Skip to content

Check if an api is publish/unpublish #417

@jonassandqvist

Description

@jonassandqvist

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions