Export and import APIs
Mobile Gateway Service lets you export APIs as a .txt file to apply the configuration to other environments or applications. You can also import an API configuration and apply it to the current environment. This topic describes how to export and import APIs.
Export APIs
You can select which APIs to export. The export operation also includes any associated groups and data models.
Only HTTP APIs can be exported.
Follow these steps:
Log on to the mPaaS console. In the navigation pane on the left, click the Mobile Gateway menu.
On the API Management tab, click More > Export API.
In the Selected APIs column, select the APIs to export.
Click the OK button to start the export. The exported APIs are saved in a .txt file.
Import APIs
To ensure system stability, select the Keep import policy.
Procedure
On the API Management tab, click More > Import API.
Verify that the AppID and current environment are correct.
Select an Import Policy. This policy is used when the imported configuration conflicts with an existing configuration.
Keep: If the imported configuration conflicts with an existing one, the existing configuration is kept and the imported one is discarded.
Overwrite: If the imported configuration conflicts with an existing one, the imported configuration replaces the existing one.
Click Upload File and select the API file to import.
Click the OK button to start the import. After the import is successful, the results are displayed.