diff --git a/index.html b/index.html index 79d7b17c..4ea27e9d 100644 --- a/index.html +++ b/index.html @@ -1708,6 +1708,82 @@
The WotThing
and WotDirectory
endpoints allow publication of service endpoints in a DID document
+ that can be used to fetch Web of Things (WoT) Thing Descriptions (TDs).
+ The WotThing
endpoint is a REST service that returns a TD
+ when the GET
method is used.
+ This can be used for self-describing devices or services, or be a service
+ separate from the actual device or service described by the TD.
+ The WotDirectory
is also a REST service that returns a TD, but this service is always
+ a Web of Things (WoT) Thing Description Directory (TDD),
+ and the TD returned by a GET
always describes the TDD's interface.
+ Details (including normative statements covering the above) are in the
+ WoT Discovery specification.
+
Normative Definition | +JSON-LD | +
---|---|
+ WoT Discovery + | ++ WotThing + | +
+ WoT Discovery + | ++ WotDirectory + | +
+{ + "@context":[ + "https://www.w3.org/ns/did/v1", + "https://www.w3.org/2022/wot/discovery-did" + ], + ... + "service": [{ + "id": "did:example:wotdiscoveryexample#td", + "type": "WotThing", + "serviceEndpoint": + "https://wot.example.com/.well-known/wot" + }] + ... +} ++ +
+{ + "@context":[ + "https://www.w3.org/ns/did/v1", + "https://www.w3.org/2022/wot/discovery-did" + ], + ... + "service": [{ + "id": "did:example:wotdiscoveryexample#tdd", + "type": "WotDirectory", + "serviceEndpoint": + "https://wot.example.com/tdd" + }] + ... +} ++ +
The CredentialRegistry
endpoint allows publication of a dedicated service endpoint in a DID document, through which verifiable credentials can be queried. Each registry endpoint is a REST endpoint. When a `GET` request is sent to the URI formed by appending the credentialSubject.id
as a URL-encoded string to the given endpoint URI, the registry MUST return an array of verifiable credentials associated with the subject ID. A sample registry endpoint can be found here.
{ ...