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:
|
||||
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:
|
||||
put:
|
||||
tags:
|
||||
@ -3664,6 +3692,23 @@ components:
|
||||
pushSupported:
|
||||
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:
|
||||
type: object
|
||||
required:
|
||||
@ -3688,6 +3733,10 @@ components:
|
||||
type: boolean
|
||||
pushEnabled:
|
||||
type: boolean
|
||||
sealable:
|
||||
type: boolean
|
||||
seal:
|
||||
$ref: '#/components/schemas/Seal'
|
||||
|
||||
AccountProfile:
|
||||
type: object
|
||||
@ -3737,6 +3786,9 @@ components:
|
||||
revision:
|
||||
type: integer
|
||||
format: int64
|
||||
seal:
|
||||
type: string
|
||||
format: base64 encoded data
|
||||
version:
|
||||
type: string
|
||||
node:
|
||||
|
Loading…
Reference in New Issue
Block a user