API
Create API
Create a route and expose it as an external API.
- Each route/API must select an upstream and cannot be left empty.
- One upstream can be paired with multiple routes/APIs.
- An API that is not published online cannot be called.
- If the same plugin is configured in both the consumer and the route/API, the plugin configuration in the consumer takes precedence.
- Log in to the API7 Enterprise dashboard.
- If the upstream is not ready, refer to Create Upstream.
- In the top navigation menu, click on Cluster Management .
- In the left menu bar, click on Cluster List .
- Click on View button of the specific cluster.
- In the left menu bar, click on Workspaces .
- Click on View button of the specific workspace.
- In the left menu bar, click on API then List .
- Click on Create button.
- Fill in the form.
- Click on Submit button.
Configure API
Edit the API properties.
- The Publish property does not support editing.
- It is not recommended to directly modify an API with the status "published."
- Log in to the API7 Enterprise dashboard.
- In the top navigation menu, click on Cluster Management .
- In the left menu bar, click on Cluster List .
- Click on View button of the specific API.
- In the left menu bar, click on Workspaces .
- Click on View button of the specific workspace.
- In the left menu bar, click on API then List .
- Click on Configure button of the specific API, or click on More menu then click on Configure Raw data .
- Edit API properties.
- Click on Submit button.
Delete API
API permanently offline and no longer in use.
- Deletion is unrecoverable, please proceed with caution.
- It is recommended to first take the API offline, confirm that there's no impact on the business, and then proceed with deletion.
- Log in to the API7 Enterprise dashboard.
- In the top navigation menu, click on Cluster Management .
- In the left menu bar, click on Cluster List .
- Click on View button of the specific cluster.
- In the left menu bar, click on Workspaces .
- Click on View button of the specific workspace.
- In the left menu bar, click on API then List .
- Click on More menu, then click on Delete .
Duplicate API
Quickly create a new API similar to an existing one to reduce the workload of repetitive configuration.
Copying an API does not immediately create a published API. It simply uses the configuration of the existing API as a pre-filled input.
- Log in to the API7 Enterprise dashboard.
- In the top navigation menu, click on Cluster Management .
- In the left menu bar, click on Cluster List .
- Click on View button of the specific cluster.
- In the left menu bar, click on Workspaces .
- Click on View button of the specific workspace.
- In the left menu bar, click on API then List .
- Click on More menu of the specific API, then click on
Duplicate
. - Edit the API properties in the form.
- Click on Submit button.
API Offline
Temporarily disable an API, keeping its configure data but making it not callable.
Only APIs with the "published" status can be offline.
- Log in to the API7 Enterprise dashboard.
- In the top navigation menu, click on Cluster Management .
- In the left menu bar, click on Cluster List .
- Click on View button of the specific cluster.
- In the left menu bar, click on Workspaces .
- Click on View button of the specific workspace.
- In the left menu bar, click on API then List .
- Click on More menu of the specific API, then click on
Offline
.
Publish API
Publish the unpublished API.
Only APIs with the "unpublished" status can be published.
- Log in to the API7 Enterprise dashboard.
- In the top navigation menu, click on Cluster Management .
- In the left menu bar, click on Cluster List .
- Click on View button of the specific cluster.
- In the left menu bar, click on Workspaces .
- Click on View button of the specific workspace.
- In the left menu bar, click on API then List .
- Click on More menu of the specific API, then click on Publish .
Import OpenAPI
Quickly create multiple routes/APIs by importing OpenAPI files.
- An upstream will be automatically created with the Task Name as the upstream name, the target node as
0.0.0.0
, the port as80
, and the weight as1
. - After importing, configure the upstream to set the correct target node.
- Multiple routes/APIs imported in the same import task will use the same upstream created by default.
- The name of each route/API will be automatically set as "Import Task Name + Path" and can be modified through API configuration later.
- The hostname of the workspace will be automatically used as the hostname for the imported routes/APIs and can be modified through API configuration later.
- Log in to the API7 Enterprise console.
- Click on Cluster Management in the top navigation menu.
- Click on Cluster List in the left-side menu.
- Click on the View button for the corresponding cluster.
- Click on Workspace in the left-side menu.
- Click on the View button for the corresponding workspace.
- Click on API - API List in the left-side menu.
- Click on the Advanced button and select Import OpenAPI from the dropdown menu.
- Fill in the form.
- Click the Submit button.