Mobile Gateway supports many different types of API services. This topic describes how to register an API by using the console.
The operations that you need to perform vary based on different types of API services.
Before adding an MPC API, make sure that the corresponding MPC API group has been created.
Add HTTP API
Log on to the mPaaS console and perform the following steps to register an HTTP API:
In the left-side navigation pane, click Mobile Gateway Service.
On the API management tab, click Create API.
In the dialog box that appears, select the HTTP API type.
In the operationType bar, input value and click OK to complete the registration.
operationType
is the unique identifier of the API service in the current environment and app.operationType
definition rules:Organization. Product domain. Products. Sub-products. Operation
.
Add MPC API
Complete the following steps to automatically pull the MPC API:
In the left-side navigation pane, click Mobile Gateway Service.
On the API management tab, click Create API.
In the dialog box that appears, select the MPC API type.
Select the corresponding API group. In the API group, select the API service to be registered from the obtained API list.
Click OK to complete the registration.