Skip to content

Commit

Permalink
feat: add wallet address to subresource requests
Browse files Browse the repository at this point in the history
  • Loading branch information
njlie committed Sep 26, 2023
1 parent 4e98e06 commit fd6b433
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions openapi/resource-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ paths:
type: object
additionalProperties: false
properties:
walletAddress:
type: string
description: The URL of the wallet address that should receive the incoming payment.
incomingAmount:
$ref: ./schemas.yaml#/components/schemas/amount
description: The maximum amount that should be paid into the wallet address under this incoming payment.
Expand Down Expand Up @@ -335,6 +338,9 @@ paths:
schema:
type: object
properties:
walletAddress:
type: string
description: The URL of the wallet address that should receive the outgoing payment.
quoteId:
type: string
format: uri
Expand Down Expand Up @@ -631,6 +637,7 @@ paths:
description: A client can fetch the latest state of an incoming payment to determine the amount received into the wallet address.
parameters:
- $ref: '#/components/parameters/id'
- $ref: '#/components/parameters/walletAddress'
'/incoming-payments/{id}/complete':
post:
summary: Complete an Incoming Payment
Expand Down Expand Up @@ -680,6 +687,7 @@ paths:
- $ref: '#/components/parameters/signature'
parameters:
- $ref: '#/components/parameters/id'
- $ref: '#/components/parameters/walletAddress'
'/outgoing-payments/{id}':
get:
summary: Get an Outgoing Payment
Expand Down Expand Up @@ -729,6 +737,7 @@ paths:
- $ref: '#/components/parameters/signature'
parameters:
- $ref: '#/components/parameters/id'
- $ref: '#/components/parameters/walletAddress'
'/quotes/{id}':
get:
summary: Get a Quote
Expand Down Expand Up @@ -1211,6 +1220,12 @@ components:
type: string
description: Sub-resource identifier
required: true
walletAddress:
name: id
in: query
schema:
type: string
description: URL
signature:
name: Signature
in: header
Expand Down

0 comments on commit fd6b433

Please sign in to comment.