mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
adding account storage configuration
This commit is contained in:
parent
157a00826d
commit
fff574d5b0
51
doc/api.oa3
51
doc/api.oa3
@ -18,8 +18,8 @@ tags:
|
|||||||
description: account creation for portal backend.
|
description: account creation for portal backend.
|
||||||
- name: account
|
- name: account
|
||||||
description: account configuration for portal backend. supports app attachment
|
description: account configuration for portal backend. supports app attachment
|
||||||
- name: authenticate
|
- name: authorize
|
||||||
description: authenticate holder of identity for external service
|
description: authorize holder of identity for external service
|
||||||
- name: profile
|
- name: profile
|
||||||
description: getting and setting of the public profile
|
description: getting and setting of the public profile
|
||||||
- name: share
|
- name: share
|
||||||
@ -68,12 +68,12 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
/admin/config:
|
/admin/claim:
|
||||||
post:
|
post:
|
||||||
tags:
|
tags:
|
||||||
- admin
|
- admin
|
||||||
description: Set admin password and node domain
|
description: Set admin password and node domain
|
||||||
operationId: set-node-config
|
operationId: set-node-claim
|
||||||
security:
|
security:
|
||||||
- basicAuth: []
|
- basicAuth: []
|
||||||
parameters:
|
parameters:
|
||||||
@ -91,12 +91,30 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
/admin/config/domain:
|
/admin/config:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- admin
|
||||||
|
description: Get node configuration. Access granted to admin username and password.
|
||||||
|
operationId: get-node-config
|
||||||
|
security:
|
||||||
|
- basicAuth: []
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: success
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
$ref: '#/components/schemas/NodeConfig'
|
||||||
|
'401':
|
||||||
|
description: permission denied
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
put:
|
put:
|
||||||
tags:
|
tags:
|
||||||
- admin
|
- admin
|
||||||
description: Set portal domain to be set in profile queries. Access granted to admin username and password.
|
description: Set node config. Access granted to admin username and password.
|
||||||
operationId: set-node-config-domain
|
operationId: set-node-config
|
||||||
security:
|
security:
|
||||||
- basicAuth: []
|
- basicAuth: []
|
||||||
responses:
|
responses:
|
||||||
@ -110,7 +128,7 @@ paths:
|
|||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
type: string
|
$ref: '#/components/schemas/NodeConfig'
|
||||||
|
|
||||||
/admin/accounts:
|
/admin/accounts:
|
||||||
get:
|
get:
|
||||||
@ -144,7 +162,7 @@ paths:
|
|||||||
- basicAuth: []
|
- basicAuth: []
|
||||||
responses:
|
responses:
|
||||||
'201':
|
'201':
|
||||||
description: generated
|
description: success
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
@ -171,7 +189,7 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
responses:
|
responses:
|
||||||
'201':
|
'201':
|
||||||
description: generated
|
description: success
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
@ -468,10 +486,10 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
/authenticate:
|
/authorize:
|
||||||
put:
|
put:
|
||||||
tags:
|
tags:
|
||||||
- authenticate
|
- authorize
|
||||||
description: Retrieve an authenticate data messaging verifying the account holder is accepting the action referenced by the token.
|
description: Retrieve an authenticate data messaging verifying the account holder is accepting the action referenced by the token.
|
||||||
operationId: authenticate
|
operationId: authenticate
|
||||||
security:
|
security:
|
||||||
@ -3536,6 +3554,15 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
|
|
||||||
|
NodeConfig:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
domain:
|
||||||
|
type: string
|
||||||
|
accountStorage:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
|
||||||
Profile:
|
Profile:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
|
Loading…
Reference in New Issue
Block a user