diff --git a/README.md b/README.md index 9b493cf..559a58b 100644 --- a/README.md +++ b/README.md @@ -40,13 +40,16 @@ A basic endpoint that gives the verification status of a certificate. ```javascript const verificationStatus = await fetch('http://localhost:9000/credentials/verify', { body: JSON.stringify({ - certificate: blockcerts + verifiableCredential: blockcerts }), method: 'POST', headers: { 'Content-Type': 'application/json' } }).then((res) => res.json()); ``` +The `/presentations/verify` counterpart works the same way, except the payload key is `verifiablePresentation` +instead of `verifiableCredential`. + *Response*: ```json @@ -71,13 +74,16 @@ and their status. ```javascript const verificationStatus = await fetch('http://localhost:9000/credentials/verify/verbose', { body: JSON.stringify({ - certificate: blockcerts + verifiableCredential: blockcerts }), method: 'POST', headers: { 'Content-Type': 'application/json' } }).then((res) => res.json()); ``` +The `/presentations/verify/verbose` counterpart works the same way, except the payload key is `verifiablePresentation` +instead of `verifiableCredential`. + *Response*: ```json