The API feature helps your team view endpoint details including recent changes, organized by date. When you connect a repository, we detect and add any associated API documentation to the relevant components in Compass.
You can import API specifications from the following source code management (SCM) apps:
Bitbucket
GitHub
Before you begin
Before you can view API documentation in Compass:
Install your SCM app in Compass. Select Apps from the top navigation and select Install on the app’s tile.
Select Configure on the app tile and connect Compass to the account containing your component’s repositories.
When you connect a Bitbucket or a GitHub repository, Compass automatically scans the SCM app for API documentation. If the scan finds API specifications in your repository, you can view endpoints on relevant component pages.
If Compass finds any code errors in the API specifications, an alert appears in the Endpoints section for your team to review. These errors need to be fixed before we can sync your updated API documentation with your components in Compass.
View an endpoint's request and responses
Go to your component’s Overview page.
Select API specification from the sidebar.
In the endpoints table, find the endpoint you want to view.
Select the hyperlinked path to view endpoint details, such as the request, responses, and code snippets.
In addition, you can select hyperlinked paths in the Changelog tab.