To create a configured API in Tanzu Service Mesh, you must provide its configuration. The configuration points to the GitHub repository and branch where the API specification and other API documents are stored.
After you select a GitHub repository and a branch in the API configuration, you must select the primary API document (the API specification) and optionally other API reference and extension documents in the selected branch. Tanzu Service Mesh reads the API definition from the API specification and creates a configured API based on the API definition.
Currently, Tanzu Service Mesh supports only public GitHub repositories.
The following procedure describes how to create a configured API in Tanzu Service Mesh.
Prerequisites
Verify that you are familiar with the concept of configured API in Tanzu Service Mesh.
Create an GitHub integration account. Based on the account configuration, Tanzu Service Mesh connects to the repository where the API documents are stored.
Verify that you know the name of the repository and the name of the branch where the API documents are stored.
Procedure
Results
Tanzu Service Mesh creates a configured API. The new configured API is added to the API Management page. You can view the contents of the API specification (the API endpoints) on the API details page.
To validate the API specification, Tanzu Service Mesh automatically scans it and generates scores to indicate the quality and health of the API specification as it relates to documentation quality, compliance with OpenAPI standards, security, and governance (breaking changes).
You and other developers can collaborate on the API specification by exchanging comments on problems in the specification, fixes for a problem, and improvements to the specification.
What to do next
For information about viewing the configured API and the API specification, see Explore APIs.
For information about viewing the generated API scores for the API specification and the recommendations for any problems found, see View the API Validation and Scoring.
For information about viewing and editing the API configuration for the configured API, see View and Edit the Configuration of a Configured API.
For information about collaborating on the API in Tanzu Service Mesh, see Collaborate on an API.