Import API for Istio Microservices
This document aims to help you quickly declare APIs for microservices to more effectively monitor and manage your APIs.
TOC
Select Service
In the left navigation bar, click Service List and enter the service for which you want to declare APIs.
Declare Service's API
Navigate to the API Tab page.
There are two ways to declare the service's API:
- Batch Import API - Declare the service's API by importing an API description file that conforms to the Swagger specification.
- Manual Import API - When a few APIs need to be added to the API list, you can manually add the service's API on the platform.
Batch Import API
Batch import APIs by uploading an API description file that supports the Swagger specification (.yaml or .json files), or by entering an API document URL that conforms to the OpenAPI 3.0 specification.
Note:
- When batch importing APIs, the existing APIs in the API list that were set through batch import at the Service Port will be cleared first. If you want to retain existing APIs, manually import only the new APIs needed.
- The uploaded API description file size must not exceed 5 MB; the number of APIs imported in batch must not exceed 2000.
Parameter Explanation
Refer to the following explanations to configure related parameters.
Manual Import of API
Parameter Explanation
Refer to the following explanations to configure related parameters.
Results and Verification
Whether you use Batch Import or Manual Import, once successfully declared, you can view the declared APIs in the API list below.