Skip to content

feat: add update credential status endpoint #110

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 19, 2021
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
45 changes: 45 additions & 0 deletions docs/vc-http-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,28 @@ paths:
description: invalid input!
"500":
description: error!
/credentials/status:
post:
tags:
- Issuer
summary: Updates the status of an issued credential
operationId: updateCredentialStatus
description: Updates the status of an issued credential.
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/UpdateCredentialStatus"
description: Parameters for updating the status of the issued credential.
responses:
"200":
description: Credential status successfully updated
"400":
description: Bad Request
"404":
description: Credential not found
"500":
description: Internal Server Error
/presentations/prove:
post:
tags:
Expand Down Expand Up @@ -122,6 +144,29 @@ paths:

components:
schemas:
UpdateCredentialStatus:
type: object
description: Request for updating the status of an issued credential.
properties:
credentialId:
type: string
credentialStatus:
type: array
items:
type: object
properties:
type:
type: string
status:
type: string
example:
{
"credentialId": "urn:uuid:45a44711-e457-4fa8-9b89-69fe0287c86a",
"credentialStatus": [{
"type": "RevocationList2020Status",
"status": "0"
}]
}
LinkedDataProof:
type: object
description: A JSON-LD Linked Data proof.
Expand Down