mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
adding sealing support to api spec
This commit is contained in:
parent
6e4d2cb80d
commit
67c4469dcc
52
doc/api.oa3
52
doc/api.oa3
@ -563,6 +563,34 @@ paths:
|
|||||||
schema:
|
schema:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
|
/account/seal:
|
||||||
|
put:
|
||||||
|
tags:
|
||||||
|
- account
|
||||||
|
description: Set sealing key for account.
|
||||||
|
operationId: set-account-seal
|
||||||
|
parameters:
|
||||||
|
- name: agent
|
||||||
|
in: query
|
||||||
|
description: agent token
|
||||||
|
required: false
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: success
|
||||||
|
'401':
|
||||||
|
description: permission denied
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/Seal'
|
||||||
|
|
||||||
/account/searchable:
|
/account/searchable:
|
||||||
put:
|
put:
|
||||||
tags:
|
tags:
|
||||||
@ -3664,6 +3692,23 @@ components:
|
|||||||
pushSupported:
|
pushSupported:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
||||||
|
Seal:
|
||||||
|
type: object
|
||||||
|
required:
|
||||||
|
- salt
|
||||||
|
- privateKeyEncrypted
|
||||||
|
- publicKey
|
||||||
|
properties:
|
||||||
|
salt:
|
||||||
|
type: string
|
||||||
|
format: base64 encoded data
|
||||||
|
privateKeyEncrypted:
|
||||||
|
type: string
|
||||||
|
format: base64 encoded data
|
||||||
|
publicKey:
|
||||||
|
type: string
|
||||||
|
format: base64 encoded data
|
||||||
|
|
||||||
AccountStatus:
|
AccountStatus:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
@ -3688,6 +3733,10 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
pushEnabled:
|
pushEnabled:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
sealable:
|
||||||
|
type: boolean
|
||||||
|
seal:
|
||||||
|
$ref: '#/components/schemas/Seal'
|
||||||
|
|
||||||
AccountProfile:
|
AccountProfile:
|
||||||
type: object
|
type: object
|
||||||
@ -3737,6 +3786,9 @@ components:
|
|||||||
revision:
|
revision:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
|
seal:
|
||||||
|
type: string
|
||||||
|
format: base64 encoded data
|
||||||
version:
|
version:
|
||||||
type: string
|
type: string
|
||||||
node:
|
node:
|
||||||
|
Loading…
Reference in New Issue
Block a user