The quick start guides you to quickly register and publish an HTTP API service to be called by mobile client.
The procedure falls into 5 steps:
Log into the console, click Products and Services > mPaaS to go to mPaaS console.
Choose the correct workspace, click the name of the application to access API service.
On the left navigation bar, click Mobile Gateway Service to go to the mobile gateway configuration page.
Register API group
Only if you register the API group first, can you select the created API group in System when you configure the created API later.
Click API group tab to open API group list, then click Create API group.
In the pop-up dialog box, enter or select the corresponding information.
Type: Select HTTP.
API group: Required, it is the name of the business system which provides services. Start with a letter or underscore. Only letters, numbers, underscores, and hyphens are supported.
Host: Required, it is the business system’s HTTP/HTTPS URL.
Timeout period: Optional, it is the timeout period (in ms) for sending requests to the business system. It defaults to 3,000 ms.
Click OK to submit. To complete the configuration of API group, see Configure HTTP group.
Register API service
Click Manage API tab to open API list, then click Create API.
In the pop-up dialog box, enter or select the API information.
API type: Select HTTP.
Add mode: Currently, mPaaS supports manual HTTP API registration only.
operationType: Required, it is the unique identifier of the API service in the current workspace and application. The naming rule is
Click OK to submit.
Configure API service
In Manage APIs tab, click Configure in the operation column of API list to go to API configuration page.
In API configuration page, click Edit on the corresponding area to edit, and then click Save.
Turn the switch on the top right corner to switch API service to On. (Only the API services turned On can be called.)
Test API service
See Test API for more information.
Generate client SDK
See Generate codes for more information.
After completing the steps above, API service can be called by client.
For more detailed information of client development, see Client development guide: