Manage APIs
Edit API
You can only view, link, and unlink APIs in SwaggerHub Portal.
Go to SwaggerHub to edit APIs.
Note
If you update an API, you must republish the connected products. If you do not republish the products, the changes in the API will not be visible in the consumer view.
Link API to Product
To link an API from SwaggerHub to a product:
On the home screen, select Manage Content next to the product.
Click the plus button next to the table of contents.
Select Link APIs.
Select the SwaggerHub project from the drop-down menu.
In the API list, select the drop-down ﹀ button next to the API.
Select Link API next to the API version.
The selected API version is linked to the product.
Note:
With SwaggerHub Portal On-Premise, you have the option to create a single portal or multiple portals that link to APIs in one or many organizations.
You can link a private API to a public product, and this icon will be shown beside the API in the product.
It is not possible to nest under an API.
Caution
Public products can contain private APIs. If a public product contains a private API, that private API is visible to everyone even if they are not given specific permissions at the organization or product level in SwaggerHub.
You are responsible for tracking the exposure of private APIs in your public products.
Unlink API from Product
Note
This action unlinks an API only from the selected portal product. It does not remove the API from SwaggerHub.
To unlink an API from a product:
On the home screen, select Manage Content next to the product.
In the API list, select the vertical ellipsis button next to the API.
Select Unlink.
The selected API version is unlinked from the product.