Skip to content

Commit

Permalink
Allow initiation of exchange to contain a VPR.
Browse files Browse the repository at this point in the history
- allows a client to get information about what the server will need to complete an exchange before making calls that might result in issuance.
  • Loading branch information
wes-smith committed Jul 16, 2024
1 parent 7ec4c0e commit b27d081
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions exchanges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,11 @@ paths:
"500":
description: Internal Error
post:
summary: Participate in an exchange. Posting an empty body will start the exchange or return what the exchange is expecting to complete the next step.
summary: Participate in an exchange. Posting an empty body will start the exchange or return
what the exchange is expecting to complete the next step. Posting a Verifiable Presentation Request with `query.type`
set to "VerifiablePresentationRequest" to start the exchange will result in either a Verifiable Presentation Request
response from the server, if the server will need a Verifiable Presentation from the client during the exchange, or a
400 error if the server will issue in response to an empty body.
tags:
- Credentials
security:
Expand All @@ -148,9 +152,15 @@ paths:
content:
application/json:
schema:
properties:
verifiablePresentation:
$ref: "./components/VerifiablePresentation.yml#/components/schemas/VerifiablePresentation"
oneOf:
- type: object
properties:
verifiablePresentationRequest:
$ref: "./components/VerifiablePresentationRequest.yml#/components/schemas/VerifiablePresentationRequest"
- type: object
properties:
verifiablePresentation:
$ref: "./components/VerifiablePresentation.yml#/components/schemas/VerifiablePresentation"
responses:
"200":
description: Exchange progressed.
Expand Down

0 comments on commit b27d081

Please sign in to comment.