Updated on 2023-04-06 GMT+08:00

API Import Precautions

You can import Swagger APIs to a new or existing API group on APIG. Before importing APIs, complete the extended definition of APIG.

Importing APIs to a New API Group

When you import APIs to a new API group name, the system creates an API group.

This function is suitable for importing new APIs to APIG.

Before importing APIs, ensure that the following requirements are met:

  • Your API group and API quotas are sufficient.
  • Use the title property in Swagger info to specify an API group name. The name of a new API group cannot be the same as that of an existing one.
  • If two APIs have the same definition (such as the same name or request path), only the first API will be imported.
  • If Extended Definition Overwrite is selected, the extended definition items (access control and request throttling policies) of an imported API will overwrite the existing extended definition items with the same name.
  • Imported APIs will not be automatically published in an environment. You can choose to publish them immediately or later.

Importing APIs to an Existing API Group

When you import APIs to a specified API group, the system adds them to the API group while retaining the existing APIs.

This function is suitable for importing new or modified APIs to an existing API group.

Before importing APIs, ensure that the following requirements are met:

  • Your API quota is sufficient.
  • If the definition of an API you are importing is the same as that of an existing API, you can overwrite the existing API or retain it. If you leave the existing API alone, the new API will not be imported.
  • If Extended Definition Overwrite is selected, the extended definition items (access control and request throttling policies) of an imported API will overwrite the existing extended definition items with the same name.
  • Imported APIs will not be automatically published in an environment. You can choose to publish them immediately or later.