All Products
Search
Document Center

Mobile Platform as a Service:Export and import API

Last Updated:Jul 06, 2023

Here is the introduction about API import and export:

  • Export API: For the convenience of applying the current API configuration to other workspaces or applications, you can export APIs to a .txt file.

  • Import API: Import API configuration and apply it in the current application. Select the import strategy and API file to import the required APIs.

Export API

Select the API to be exported as needed, the API group and Data Model associated with API will be exported together.

Note

Only HTTP APIs can be exported.

The operation steps are as follows:

  1. Log in to the mPaaS console, and from the navigation bar on the left, click Mobile Gateway Service.

  2. On the Manage APIs tab, click More > Export API.

  3. In the Select API area, select the API to be exported.

  4. Click OK to start API exporting. The exported APIs are in a .txt file.

Import API

To ensure the stability of system, it is suggested that you select Remain as the import strategy.

The operation steps are as follows:

  1. Log in to the mPaaS console, and from the navigation bar on the left, click Mobile Gateway Service.

  2. On the Manage APIs tab, click More > Import API.

  3. Confirm that the AppID and the current workspace are correct.

  4. Select Import strategy: The strategy used when the imported configuration has conflict with the existing configuration.

    • Keep existing configuration: Keep the existing configuration and discard the imported configuration when there is a conflict.

    • Replace with new configuration: Replace the existing configuration with the imported configuration when there is a conflict.

  5. Click Upload file and select the API file to upload.

  6. Click OK to start API importing. When the configuration is successfully imported, the importing result is displayed on the page.