Skip to content
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

update endpoint from Prove to create #378

Merged
merged 2 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
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
20 changes: 9 additions & 11 deletions holder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,31 +244,29 @@ paths:
description: Internal Error
"501":
description: Not Implemented

/presentations/prove:
msporny marked this conversation as resolved.
Show resolved Hide resolved
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 +490,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
msporny marked this conversation as resolved.
Show resolved Hide resolved
/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>
msporny marked this conversation as resolved.
Show resolved Hide resolved
</section>

<section>
Expand Down