The data manager acts as a router that forwards requests to the responsible storage adapter services. An overview of its API is available at the server under the route /api-docs
Route a submodel to its respective adapter
POST /submodels
[
{
"embeddedDataSpecifications": [],
"semanticId": {
"keys": [
{
"idType": "URI",
"type": "GlobalReference",
"value": "opcfoundation.org/specifications-unified-architecture/part-100-device-information-model/",
"local": false
}
]
},
"kind": "Instance",
"descriptions": [],
"idShort": "opc-ua-devices",
"identification": {
"id": "sap.com/aas/submodels/part-100-device-information-model/10JF-1234-Jf14-PP22",
"idType": "URI"
},
"modelType": {
"name": "Submodel"
},
"submodelElements": [
{ .....}
}
]
GET /submodels
Retrieve a submodel from its adapter
parameter | Description |
---|---|
submodelid | Submodel.identification.id |
OR
parameter | Description |
---|---|
submodelSemanticid | Submodel.semanticId.value[0] |
- To start:
npm run dev
from the this directory - A GET on
localhost:4000/health
returns a "Server Up!"
To run tests give:
npm run test
Technologies: