Configuration
Open config.json to configure related parameters;
For example:
{
"name": "demo-core-api",
"version": "1.0.2",
"language": "zh-hans",
"description": "cutos lwa demo",
"params": {
"title": "CUTOS LWA Example"
},
"paramsDescription": {
"title": {
"name": "Title",
"visible": true
}
}
}
params
Parameters, configure the required parameters. Parameters starting with // will be automatically skipped in the system, not displayed, and only used to record parameter information.
paramsDescription
Parameter description, configure whether to display this parameter on the web page, and the displayed parameter title.
"visible":true
: true page displays this parameter, false page does not display this parameter;"name": "title"
: "parameter-title" is displayed as "title".
If there is no such configuration item, the page "parameter-title" will display the key of the parameter in params by default, that is, "title".