Skip to content

Commit

Permalink
chore: update accounts interface (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleyow authored May 18, 2021
1 parent 2275c05 commit a278d05
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions src/simulator/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2077,22 +2077,28 @@ components:
AccountsIDPutResponse:
title: AccountsIDPutResponse
type: array
items:
type: object
description: |
`GET /accounts/{ID}` response.
properties:
accountNickname:
$ref: '#/components/schemas/accountAddress'
id:
$ref: '#/components/schemas/accountAddress'
currency:
$ref: '#/components/schemas/currency'
required:
- accountNickname
- id
- currency
type: object
description: 'The object sent in a `PUT /accounts/{ID}` request.'
properties:
accounts:
type: array
items:
type: object
description: |
The object sent in a `PUT /accounts/{ID}` request.
properties:
accountNickname:
$ref: '#/components/schemas/AccountAddress'
id:
$ref: '#/components/schemas/AccountAddress'
currency:
$ref: '#/components/schemas/Currency'
required:
- accountNickname
- id
- currency
required:
- accounts

AccountAddress:
title: AccountAddress
Expand Down Expand Up @@ -2750,4 +2756,4 @@ components:
resend of the authentication value.
example: ENTERED
required:
- responseType
- responseType

0 comments on commit a278d05

Please sign in to comment.