Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

Latest commit

 

History

History
41 lines (23 loc) · 1.25 KB

api.rst

File metadata and controls

41 lines (23 loc) · 1.25 KB

Sidetree Protocol Go Implementation

Sidetree node exposes a set of REST API that enables the creation of new DIDs and their initial state, subsequent DID Document updates and DID Document resolutions. API uses design first approach to generate a server stub for API using go swagger. The API structure is defined in swagger.yaml.

Sidetree REST API

DID and DID Document Creation

Request Path :

Post /sidetree/v1/operations

DID Document resolution

Request Path :

GET  /sidetree/v1/identifiers/{DidOrDidDocument}

Updating a DID Document

Request Path :

Post /sidetree/v1/operations

DID Deletion

Request Path :

Post /sidetree/v1/operations

DID Resolution

The Request handler resolve operation uses Operation processor resolves method by passing input parameter DIDUniqueSuffix to its DID document. Operation processor resolve iterate over all operations and apply each operation in chronological order to build a complete DID Document.

Note

To follow the sample Request and Response for each of the above operation. Refer to Sidetree Protocol.