Skip to content

Commit

Permalink
update endpoing to use proved
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhraisha committed Mar 26, 2024
1 parent ffe5571 commit 0cc0c81
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions holder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,30 +245,30 @@ paths:
"501":
description: Not Implemented

/presentations/prove:
/presentations/:
post:
summary: Proves a presentation and returns it in the response body.
summary: Creates a presentation and returns it in the response body.
tags:
- Presentations
security:
- networkAuth: []
- oAuth2: []
- zCap: []
operationId: provePresentation
description: Proves a presentation and returns it in the response body.
operationId: createPresentation
description: Creates a presentation and returns it in the response body.
requestBody:
content:
application/json:
schema:
$ref: "#/components/schemas/ProvePresentationRequest"
description: Parameters for proving the presentation.
$ref: "#/components/schemas/CreatePresentationRequest"
description: Parameters for creating the presentation.
responses:
"201":
description: Presentation successfully proved!
description: Presentation successfully created!
content:
application/json:
schema:
$ref: "#/components/schemas/ProvePresentationResponse"
$ref: "#/components/schemas/CreatePresentationResponse"
"400":
description: invalid input!
"500":
Expand Down Expand Up @@ -492,14 +492,14 @@ components:
$ref: "./components/DeriveCredentialOptions.yml#/components/schemas/DeriveCredentialOptions"
DeriveCredentialResponse:
$ref: "./components/VerifiableCredential.yml#/components/schemas/VerifiableCredential"
ProvePresentationRequest:
CreatePresentationRequest:
type: object
properties:
presentation:
$ref: "./components/Presentation.yml#/components/schemas/Presentation"
options:
$ref: "./components/PresentCredentialOptions.yml#/components/schemas/PresentCredentialOptions"
ProvePresentationResponse:
CreatePresentationResponse:
type: object
properties:
verifiablePresentation:
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ <h3>Presenting</h3>

<table class="simple api-summary-table"
data-api-path="
/credentials/derive /presentations/prove
/credentials/derive /presentations
/presentations /presentations/{id}
/exchanges/ /exchanges/{exchange-id} /exchanges/{exchange-id}/{transaction-id}"
></table>
Expand All @@ -805,12 +805,12 @@ <h4>Derive Credential</h4>
</section>

<section>
<h4>Prove Presentation</h4>
<h4>Create Presentation</h4>
<p>
</p>

<div class="api-detail"
data-api-endpoint="post /presentations/prove"></div>
data-api-endpoint="post /presentations"></div>
</section>

<section>
Expand Down

0 comments on commit 0cc0c81

Please sign in to comment.