jeifit
7 years agoNew Contributor
publish/unpublish an api through the registry api
The registry api, documented here https://app.swaggerhub.com/apis/swagger-hub/registry-api/1.0.45#/, allows the ability to create, update, read, and delete an api. However, it does not appear to provide the ability to publish / unpublish an api. I need the ability to publish / unpublish through the api. Is there an undocumented feature I could use? If not, could this be added?
Thanks,
Josh
Registry API now also lets you publish/unpublish definitions. Example:
curl -X PUT "https://api.swaggerhub.com/apis/OWNER/API_NAME/VERSION/settings/lifecycle" -H "Authorization: SWAGGERHUB_API_KEY" -H "Content-Type: application/json" -d "{\"published\": true}"