All Products
Search
Document Center

Mobile Platform as a Service:Data model

Last Updated:Jun 10, 2026

To call HTTP API services, you define request and response structures as reusable data models. This simplifies parameter configuration and lets you reference the same model across multiple API services. This feature is used to define parameters for HTTP API services. Other types of API services do not require manual definition.

Definition methods

Mobile Gateway Service (MGS) provides two methods to define a data model:

  • Sample data editor (recommended): Paste sample data and let MGS parse the model structure automatically.

  • Visual editor: Add model parameters one by one.

Configure a data model

  1. On the MGS homepage, select the Data Model tab.

  2. Click Add Data Model to create a new model, or click Details next to an existing model to edit it.

    Fill in the following fields:

    • Model Name: Must start with a letter or underscore (_), and contain only letters, underscores, and digits. For example: userProfile or _orderItem.

    • Model Description: A brief description of what this model represents.

    • Model Parameters: Define the fields in the model. Each parameter has the following attributes:

      • Name: Required.

      • Type: Required. Valid values are String, Int, Long, Float, Double, Boolean, List, and existing data models.

        Note

        The Map type is not currently supported.

      • Default Value: Optional. The default value.

      • Description: Optional.

  3. Click Submit.