Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Latest commit

 

History

History
74 lines (51 loc) · 1.43 KB

adapter-registry.md

File metadata and controls

74 lines (51 loc) · 1.43 KB

adapter-registry

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

Adapters

Create an Adapter in the Registry

POST /adapters

[
    {
          "adapterId":"fooAdapterId",
          "url":"fooURL",
          "name":"testAdaptername",
          "submodelid": "opc-ua-devices",
          "submodelsemanticid" : "part-100-device-information-model"
    }
]

Read

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 All Adapters

DELETE /deleteall

response
NOTE: only one adapter per submodel is assumed

    {
    "Registry Cleared"
    }

Persistency

node-persist as Local storage is used