Skip to content

Commit

Permalink
change swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
paweljakubas committed Jun 8, 2021
1 parent 518b4a4 commit 856f43c
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions specifications/api/swagger.yaml
Expand Up @@ -2465,6 +2465,16 @@ components:
passphrase: *walletPassphrase
format: *keyExtended

ApiPostAccountKeyDataWithPurpose: &ApiPostAccountKeyDataWithPurpose
type: object
required:
- passphrase
- format
properties:
passphrase: *walletPassphrase
format: *keyExtended
purpose: *derivationSegment

ApiSettingsPutData: &ApiSettingsPutData
type: object
properties:
Expand Down Expand Up @@ -4666,7 +4676,8 @@ paths:
description: |
<p align="right">status: <strong>stable</strong></p>
Derive an account public key for any account index. For this key derivation to be possible,
the wallet must have been created from mnemonic.
the wallet must have been created from mnemonic. In request body, arbitrary purpose can be specified.
Omitting the purpose segment means default purpose, ie., 1852H, will be used.
<b>Note:</b> Only _Hardened_ indexes are supported by this endpoint.
parameters:
Expand All @@ -4676,7 +4687,7 @@ paths:
required: true
content:
application/json:
schema: *ApiPostAccountKeyData
schema: *ApiPostAccountKeyDataWithPurpose
responses: *responsesPostAccountKey

/wallets/{walletId}/keys:
Expand Down

0 comments on commit 856f43c

Please sign in to comment.