Create third-party APIs in batches

Updated at:

You can create APIs in batches using a Swagger file from a third-party platform. This method reduces the cost of resource operations. This topic describes how to create third-party APIs in batches.

Prerequisites

You have a Swagger file.

Procedure

  1. Log on to the Data Resource Platform console.

  2. In the upper-left corner of the page, click the 导航图标 icon and select Collaboration.

  3. In the top menu bar, click the 选择工作组 icon, select a target work group, and then click Asset Processing.

  4. In the navigation pane on the left, click the API icon and choose API Development > Third-party API.

  5. In the upper-right corner of the Third-party API page, select Create API > Batch Create.

  6. Select an owner application, upload the API by dragging and dropping the .json file or by selecting it, and then click OK.

    After the file is successfully imported, the new APIs are displayed in the API resource list.

Related operations

Operation

Description

Edit an API

In the API resource list, find the target API and click Edit in the Actions column. You can then modify the API on the editing page.

Note
  • When you edit the cloud compute resource in the API parameter settings, check if any fields in the current table are the same as the fields in the table used before editing. If they are the same, your edits may not take effect.

  • Changing the service resource group affects the API Path.

Copy an API

In the Actions column of the API resource list, choose More > Copy. A new draft API is created in the API resource list. To modify the copied API, click Edit in its Actions column.

Delete an API

  • Single deletion: In the Actions column of the API resource list, choose More > Delete. In the Delete dialog box, click OK.

  • Batch deletion: In the API resource list, select the APIs to delete and click Batch Delete below the list. In the Batch Delete dialog box, click OK.

Note

You cannot delete published APIs.

What to do next

After you create an API, you must publish it to make it available for use. For more information, see Publish an API.