SwaggerHub is a collaborative platform where you can define your API’s using the OpenAPI Specification and manage your API’s throughout their lifecycle. SwaggerHub is brought to you by the same people behind the open-source Swagger tools. It integrates the core Swagger tools — Swagger UI, Editor, Codegen, Validator — into a single platform to help you coordinate the entire workflow of an API’s lifecycle.
With SwaggerHub, you can:
- Define your API’s in the OpenAPI format.
- Host all your API definitions in a single place.
- Store your common API components (such as data models and responses) in domains and reference them from API definitions.
- Collaborate on API definitions with your team.
- Generate server and client code and push it to GitHub, GitLab, Bitbucket, or Azure DevOps Services.
- Share your API’s publicly and privately.
- Iterate the API design and manage multiple API versions.
Now we can Integrate SwaggerHub API with Azure API Management step by step as follows.
1. Create an API in SwaggerHub
âś… Step-by-step directions
- Go to the SwaggerHub Website
- Create a new API
- Open the API in Editor Mode
- Define Your OpenAPI Specifications
2. Go to Azure Portal
âś… Step-by-step directions
- Go to API Management Service
- Create New API as below image
3. Configure the integration
âś… Step-by-step directions
- Open your API in the SwaggerHub editor.
- If the API has several versions, select the version you want to push to Azure API Management.
​3. If this version is published, unpublish it. Only unpublished APIs can be integrated     with Azure API Management.
  4. Click the API name, switch to the Integrations tab, and click Add New I             Integrations:
   Â
 5. Select Azure API Management from the list
 6. Fill all the required details as mentioned below image
 7. Click the button “Sign in with Microsoft” to grant SwaggerHub access to your    ​  Azure API Management service.   Â
8. Click Create and Execute.
That’s it! Now, every time you save this version of the API, the definition is synced and updated in Azure API Management.
You can see the created or updated API in your Azure API Management portal
Zoom image will be displayed