A service component that offers an API for:
- registering a storage adapter
- retrieving a storage adapter
- assigning a submodel to a storage adapter
- retrieving the adapter(s) that can handle a submodel
Create an Adapter in the Registry
POST /adapters
[
{
"adapterId":"fooAdapterId",
"url":"fooURL",
"name":"testAdaptername",
"submodelid": "opc-ua-devices",
"submodelsemanticid" : "part-100-device-information-model"
}
]
GET /adapters
parameter | Description |
---|---|
submodelid | Submodel.identification.id |
OR
parameter | Description |
---|---|
submodelsemanticid | Submodel.semanticId.value[0] |
response
NOTE: only one adapter per submodel is assumed
{
"adapterId":"fooAdapterId",
"url":"fooURL",
"name":"testAdaptername",
"submodelid": "opc-ua-devices",
"submodelsemanticid" : "part-100-device-information-model"
}
DELETE /deleteall
response
NOTE: only one adapter per submodel is assumed
{
"Registry Cleared"
}
node-persist as Local storage is used