انتقل إلى المحتوى الرئيسي

Read the exact DID document that will be published

GET 

/api/v1/identifiers/:id/preview

The document as it will be published, the URLs it will be served at and the keys behind it. Reading it is what allows publication: publish is refused until the current document has been previewed, and a document rendered again since the last preview needs a new one. document is canonical JSON text; parse it to read it, and compare documentDigest with the SHA-256 of its bytes to know nothing changed it on the way. For a webvh identifier, parallelDocument is the did:web form served beside the log. An identifier still in placing has no document yet and is refused with 409; read the identifier until it is prepared.

Request​

Responses​

The publication preview.

Response Headers
    X-Correlation-Id

    The correlation id of the request, on every response including 401.