Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down