Skip to content

Commit

Permalink
delete operation
Browse files Browse the repository at this point in the history
  • Loading branch information
reinkrul committed Nov 6, 2023
1 parent 7357bf8 commit 0a46400
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/_static/usecase/v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,32 @@ paths:
$ref: "../common/error_response.yaml"
default:
$ref: "../common/error_response.yaml"
delete:
summary: Delete a credential subject from list.
description: |
An API provided by the use case maintainer that removes all presentations of a specific credential subject from the list.
The presentation must be signed by credential subject which' presentations should be removed.
The presentation should not contain any credentials but if there are, they are ignored.
error returns:
* 400 - incorrect input; e.g. unsupported presentation, invalid signature, etc.
operationId: removePresentations
tags:
- usecase
requestBody:
description: Presentation identifying the credential subject to remove from the list.
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/VerifiablePresentation"
responses:
"201":
description: Presentation was added to the list
"400":
$ref: "../common/error_response.yaml"
default:
$ref: "../common/error_response.yaml"
/usecase/{listName}/search:
parameters:
- name: listName
Expand Down

0 comments on commit 0a46400

Please sign in to comment.