Siemens Web Application Collaboration (SWAC) 库是一种
JavaScript 库,旨在简化和标准化 Siemens "mash-up" Web 应
用程序的开发。 SWAC 有助于集成第三方 SWAC 组件。
SWAC组件JSON格式如下:
json
{
"mver": "1.2.0",
"swac": {
"identity": {
"name": "ReportCenter",
"version": "1.0.0",
"displayname": "报表系统",
"type": "UI",
"flavor": "ui",
"source": "http://host[:server-port][/path]"
},
"contracts": {
"api": {
"methods": {
"GetMenuList": {
"description": "helpstring",
"return": {
"type": "return type"
},
"parameters": {}
},
"beginGetMenuList": {
"description": "helpstring",
"return": {
"type": "return type"
},
"parameters": {}
}
},
"events": {}
},
"interfaces": {},
"dpc": {}
},
"metadata": {
"description": "报表系统"
}
}
}
需要替换内容
java
swac-identity-source//前端项目地址
swac-identity-name//组件id
swac-identity-displayname//组件名