_root
properties
Parameter | Data type | Description | Required |
---|---|---|---|
name**** | string | The name of the specified micro application. It is used as the default menu name. | ✓ Yes |
type**** | string | The file type and version. The current version is micro-apps/v1.1 . | ✓ Yes |
description | string | The simple description that supports multilingual settings. | No |
defaultMenuIcon | Icon | The icon object. | No |
privileges | array[] | The list of permissions. | No |
apis | Api [] | A list of all dependent APIs for the specified micro application. | No |
appName | string | The name of the specified micro application. It is unique under one developer account. | ✓ Yes |
annotations | Annotations | The annotations. Provide remarks and ad hoc feature support based on conventions. | No |
supportedPlatform | string [] | The supported platform. DESKTOP indicates a desktop web application and MOBILE indicates a mobile application. Currently, both platforms are not supported simultaneously. You can only choose ["DESKTOP"] or ["MOBILE"]. | No |
universalId | string | The globally unique ID of a micro application, which is used for micro application navigation. The ID cannot be changed after it is generated. | No |
appEngine | string | The engine that runs the micro application.
| ✓ Yes |
dependencies | string [] | The list of micro applications on which this micro application depends. If the current micro application has dependencies on other micro applications, we recommend adding the universalID of the depended micro applications. Prompts will be added if necessary. | No |
entries | AppEntry [] | The entry to an application. A micro application can have one or more entries. | No |
Additional properties are allowed.
The name of the specified micro application. It is used as the default menu name.
string
The file type and version. The current version is micro-apps/v1.1
.
string
The simple description that supports multilingual settings.
string
The icon object.
Icon
The list of permissions.
array[]
A list of all dependent APIs for the specified micro application.
Api
[]
The name of the specified micro application. It is unique under one developer account.
string
^([a-z]|[0-9])[a-z0-9]?
: <= 100
The annotations. Provide remarks and ad hoc feature support based on conventions.
Annotations
The supported platform. DESKTOP
indicates a desktop web application and MOBILE
indicates a mobile application. Currently, both platforms are not supported simultaneously. You can only choose ["DESKTOP"] or ["MOBILE"].
string
[]
DESKTOP
MOBILE
The globally unique ID of a micro application, which is used for micro application navigation. The ID cannot be changed after it is generated.
string
The engine that runs the micro application.
MICRO-FRONTEND
: A micro application is loaded as a micro frontend. Currently, qiankun
is used.WEB
: Currently, it is used for web-native mobile micro applications only. Optional.NATIVE
: Reserved for mobile platform of native applications. It is not currently supported.TUYA-MINI-PROGRAM
: The engine of Tuya MiniApp. Reserved for mobile platforms. It is not currently supported.WX-MINI-PROGRAM
: WeChat mini program.string
"MICRO_FRONTEND"
"WEB"
"NATIVE"
"TUYA-MINI-PROGRAM"
"WX-MINI-PROGRAM"
The list of micro applications on which this micro application depends. If the current micro application has dependencies on other micro applications, we recommend that you add the universalID
of the depended micro applications. Prompts will be added if necessary.
string
[]
The entry to an application. A micro application can have one or more entries.
AppEntry
[]
A list of all dependent APIs for the specified micro application.
Api
properties
Parameter | Data type | Description | Required |
---|---|---|---|
namespace | string | The HTTP header of namespace. Currently, it is used for the OpenAPI interface to distinguish interfaces that are accessed through the same route. | No |
method | string | The HTTP method of the specified API. | ✓ Yes |
path | string | The description of an API path, such as /v1.0/users/{user_id} . | ✓ Yes |
type**** | string | The API type.
| No |
privilegeCode | string | The code of the associated permission. For more information, see #privileges. | No |
Additional properties are allowed.
The HTTP header of namespace. Currently, it is used for the OpenAPI interface to distinguish interfaces that are accessed through the same route.
string
The HTTP method of the specified API.
string
"get"
"post"
"put"
"delete"
"GET"
"POST"
"PUT"
"DELETE"
The description of an API path, such as /v1.0/users/{user_id}
.
string
The API type.
/open-api/
prefix in the micro application.CustomAPI
corresponds to the internal API entry of the user-deployed service. It can be accessed through the custom-api
prefix in the micro application.string
"OpenAPI"
"CustomerAPI"
The code of the associated permission. For more information, see #privileges.
string
The entry to an application.
AppEntry
properties
Parameter | Data type | Description | Required |
---|---|---|---|
type**** | string | The type of the specified entry.
| ✓ Yes |
name**** | string | The name of the specified entry that supports multilingual settings. | ✓ Yes |
path | string | The route of the specified entry. | ✓ Yes |
code**** | string | The ID of the specified entry. It is unique in a micro application. | ✓ Yes |
appIcon | AppIcon | The icon of the specified application. It is used for a mobile micro application. The size is 40 × 40 pixels and the bleed is 3 pixels. A @2x or @3x image is recommended. | No |
ratio | number | The ratio of the display size, also known as the aspect ratio. It is required when the entry is Widget type. | No |
Additional properties are allowed.
The type of the specified entry.
QuickEntry
: a quick entry to a mobile application.
Widget
: a mobile component.
Menu
: a menu.
Type: string
Required: ✓ Yes
Allowed values:
"QuickEntry"
"Widget"
"Menu"
The name of the specified entry that supports multilingual settings.
string
The route of the specified entry.
string
The ID of the specified entry. It is unique in a micro application.
string
The icon of the specified application. It is used for a mobile micro application. The size is 40 × 40 pixels and the bleed is 3 pixels. A @2x or @3x image is recommended.
AppIcon
The ratio of the display size, also known as the aspect ratio. It is required when the entry is Widget
type.
number
>= 0.5
< 2
The icon of the specified application. It is used for a mobile micro application. The size is 40 × 40 pixels and the bleed is 3 pixels. A @2x or @3x image is recommended.
AppIcon
properties
Parameter | Data type | Description | Required |
---|---|---|---|
type**** | string | Icon type: cdn. URL is required. | ✓ Yes |
url | string | The URL of the specified file. | ✓ Yes |
size**** | string | The size of the specified file, in pixels. For example, 120×120 . | ✓ Yes |
Additional properties are allowed.
Icon type: cdn. URL is required.
string
"cdn"
The URL of the specified file.
string
The size of the specified file, in pixels. For example, 120×120
.
string
The icon object.
Icon
properties
Parameter | Data type | Description | Required |
---|---|---|---|
type**** | string | The icon type. Available values: URL and tuyaIcon . tuyaIcon is recommended. | ✓ Yes |
name**** | string | It is required when Icon.type is tuyaIcon . You can go to TuyaIcon to view all available icons. It is recommended. | No |
url | string | The URL of the specified icon. It is required when Icon.type is URL . It will no longer be supported in the future. tuyaIcon is recommended. | No |
Additional properties are allowed.
The icon type. Available values: URL
and tuyaIcon
. tuyaIcon
is recommended.
string
"URL"
"tuyaIcon"
It is required when Icon.type
is tuyaIcon
. You can go to TuyaIcon to view all available icons. It is recommended.
string
The URL of the specified icon. It is required when Icon.type
is URL
. It will no longer be supported in the future. tuyaIcon
is recommended.
string
^(http://|https://)
The custom permission of the specified micro application.
Privilege
properties
Parameter | Data type | Description | Required |
---|---|---|---|
name**** | string | The display name of the specified permission that supports multilingual settings. | ✓ Yes |
code**** | string | The code of the specified permission. It is unique in a micro application. If the code is changed, the previously configured permission information will be lost, and the user needs to reconfigure the permission. | ✓ Yes |
Additional properties are allowed.
The display name of the specified permission that supports multilingual settings.
string
The code of the specified permission. It is unique in a micro application. If the code is changed, the previously configured permission information will be lost, and the user needs to reconfigure the permission.
string
Provide remarks and ad hoc feature support based on conventions. Developers are allowed to add attributes other than the following.
Annotations
Properties
参数 | Type | Description | Required |
---|---|---|---|
sdf.cli:microFramework | string | Framework type | ✓ Yes |
sdf.feat:colorTheme | boolean | Whether to support theme color | No |
sdf.feat:i18n | boolean | Enable multil language | No |
sdf.accessType | PUBLIC | Signs that microapps do not require login | No |
sdf.main-app.menu.hide_in_menu | boolean | Hide menu entries for microapps | No |
Framework type.
string
"REACT_TS"
"REACT_JS"
"VUE_TS"
"VUE_JS"
Whether to support theme color.
boolean
Enable multil language. Multilingual information can be managed on the SaaS No-Code Platform -- My Applications
boolean
Hide menu entries for microapps.
boolean