mirror of
https://github.com/balzack/databag.git
synced 2025-05-05 07:55:15 +00:00
updated api to support import/export
This commit is contained in:
parent
9debd23bf2
commit
26ab4a12d0
280
doc/api.oa3
280
doc/api.oa3
@ -24,12 +24,10 @@ tags:
|
|||||||
description: getting and setting of the public profile
|
description: getting and setting of the public profile
|
||||||
- name: share
|
- name: share
|
||||||
description: access control for personal subjects, associates content and cards
|
description: access control for personal subjects, associates content and cards
|
||||||
|
|
||||||
- name: contact
|
- name: contact
|
||||||
description: connection to other identities, hook receiver
|
description: connection to other identities, hook receiver
|
||||||
- name: content
|
- name: content
|
||||||
description: posting and listing of personal subjects, group and tag managment
|
description: posting and listing of personal subjects, group and tag managment
|
||||||
|
|
||||||
- name: converstaion
|
- name: converstaion
|
||||||
description: group sharing of subjects
|
description: group sharing of subjects
|
||||||
|
|
||||||
@ -251,6 +249,33 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
|
/admin/accounts/import:
|
||||||
|
post:
|
||||||
|
tags:
|
||||||
|
- admin
|
||||||
|
description: Import an account account from a backup archive. Access granted to the admin username and password.
|
||||||
|
operationId: import account
|
||||||
|
security:
|
||||||
|
- basicAuth: []
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: success
|
||||||
|
'401':
|
||||||
|
description: permission denied
|
||||||
|
'406':
|
||||||
|
description: account already imported
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
requestBody:
|
||||||
|
content:
|
||||||
|
multipart/form-data:
|
||||||
|
schema:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
fileName:
|
||||||
|
type: string
|
||||||
|
format: binary
|
||||||
|
|
||||||
/account/public/claimable:
|
/account/public/claimable:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
@ -331,6 +356,46 @@ paths:
|
|||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
|
/account/did:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- account
|
||||||
|
description: Retrieve account DIDkey. Authorized to account username and password.
|
||||||
|
operationId: get-account-did
|
||||||
|
security:
|
||||||
|
- basicAuth: []
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: successful operation
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
'401':
|
||||||
|
description: authentication error
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
|
||||||
|
/account/disabled:
|
||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- account
|
||||||
|
description: Get disabled status of account. Authorized to account username and password.
|
||||||
|
operationId: get-account-status
|
||||||
|
security:
|
||||||
|
- basicAuth: []
|
||||||
|
responses:
|
||||||
|
'200':
|
||||||
|
description: successful operation
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
'401':
|
||||||
|
description: authentication error
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
|
||||||
/account/profile:
|
/account/profile:
|
||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
@ -467,6 +532,8 @@ paths:
|
|||||||
type: string
|
type: string
|
||||||
'401':
|
'401':
|
||||||
description: invalid password
|
description: invalid password
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
put:
|
put:
|
||||||
@ -487,6 +554,8 @@ paths:
|
|||||||
description: invalid token
|
description: invalid token
|
||||||
'406':
|
'406':
|
||||||
description: app limit reached
|
description: app limit reached
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -517,6 +586,24 @@ paths:
|
|||||||
description: invalid password
|
description: invalid password
|
||||||
'404':
|
'404':
|
||||||
description: app not found
|
description: app not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
|
'500':
|
||||||
|
description: internal server error
|
||||||
|
|
||||||
|
/account/export:
|
||||||
|
put:
|
||||||
|
tags:
|
||||||
|
- account
|
||||||
|
description: Export account from node. Account is automatically disabled afterwards. Authorized to account username and password.
|
||||||
|
operationId: set-account-export
|
||||||
|
security:
|
||||||
|
- basicAuth: []
|
||||||
|
responses:
|
||||||
|
'201':
|
||||||
|
description: success
|
||||||
|
'401':
|
||||||
|
description: permission denied
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -537,6 +624,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/DataMessage'
|
$ref: '#/components/schemas/DataMessage'
|
||||||
'401':
|
'401':
|
||||||
description: permission denied
|
description: permission denied
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -562,6 +651,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/Profile'
|
$ref: '#/components/schemas/Profile'
|
||||||
'401':
|
'401':
|
||||||
description: permission denied
|
description: permission denied
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
put:
|
put:
|
||||||
@ -576,6 +667,8 @@ paths:
|
|||||||
description: success
|
description: success
|
||||||
'401':
|
'401':
|
||||||
description: permission denied
|
description: permission denied
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -604,6 +697,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'405':
|
'405':
|
||||||
description: invalid image
|
description: invalid image
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -624,6 +719,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/DataMessage'
|
$ref: '#/components/schemas/DataMessage'
|
||||||
'401':
|
'401':
|
||||||
description: permission denied
|
description: permission denied
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -646,6 +743,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/Group'
|
$ref: '#/components/schemas/Group'
|
||||||
'401':
|
'401':
|
||||||
description: invalid token
|
description: invalid token
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
post:
|
post:
|
||||||
@ -660,6 +759,8 @@ paths:
|
|||||||
description: entry created
|
description: entry created
|
||||||
'401':
|
'401':
|
||||||
description: permission denied
|
description: permission denied
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -698,6 +799,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: group not found
|
description: group not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -734,6 +837,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: group not found
|
description: group not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -756,6 +861,8 @@ paths:
|
|||||||
description: invalid data message
|
description: invalid data message
|
||||||
'401':
|
'401':
|
||||||
description: permission denied
|
description: permission denied
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -778,6 +885,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/CardView'
|
$ref: '#/components/schemas/CardView'
|
||||||
'401':
|
'401':
|
||||||
description: permission denied
|
description: permission denied
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -807,6 +916,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: card not found
|
description: card not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
delete:
|
delete:
|
||||||
@ -830,6 +941,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: card not found
|
description: card not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -865,6 +978,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: card not found
|
description: card not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -900,6 +1015,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: card not found
|
description: card not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -926,6 +1043,8 @@ paths:
|
|||||||
enum: [ pending, confirmed, requested, connecting, connected ]
|
enum: [ pending, confirmed, requested, connecting, connected ]
|
||||||
'400':
|
'400':
|
||||||
description: invalid data message
|
description: invalid data message
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -960,6 +1079,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: card not found
|
description: card not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -986,6 +1107,8 @@ paths:
|
|||||||
enum: [ pending, confirmed, requested, connecting, connected ]
|
enum: [ pending, confirmed, requested, connecting, connected ]
|
||||||
'400':
|
'400':
|
||||||
description: invalid data message
|
description: invalid data message
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -1020,6 +1143,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: not found
|
description: not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
put:
|
put:
|
||||||
@ -1047,6 +1172,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: card not found
|
description: card not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -1084,6 +1211,8 @@ paths:
|
|||||||
description: card not found
|
description: card not found
|
||||||
'405':
|
'405':
|
||||||
description: invalid image
|
description: invalid image
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -1113,6 +1242,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: card not found
|
description: card not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -1142,6 +1273,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: card not found
|
description: card not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -1174,6 +1307,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: card not found
|
description: card not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -1209,6 +1344,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: card or group not found
|
description: card or group not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
delete:
|
delete:
|
||||||
@ -1242,6 +1379,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: card or group not found
|
description: card or group not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -1258,6 +1397,8 @@ paths:
|
|||||||
description: revision set
|
description: revision set
|
||||||
'401':
|
'401':
|
||||||
description: not authorized
|
description: not authorized
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -1280,6 +1421,8 @@ paths:
|
|||||||
description: revision set
|
description: revision set
|
||||||
'401':
|
'401':
|
||||||
description: not authorized
|
description: not authorized
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -1314,6 +1457,8 @@ paths:
|
|||||||
format: int64
|
format: int64
|
||||||
'401':
|
'401':
|
||||||
description: permission denied
|
description: permission denied
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -1345,6 +1490,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: block not found
|
description: block not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -1382,6 +1529,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: block not found
|
description: block not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -1410,6 +1559,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/Article'
|
$ref: '#/components/schemas/Article'
|
||||||
'401':
|
'401':
|
||||||
description: permission denied
|
description: permission denied
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -1456,6 +1607,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: article not found
|
description: article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
delete:
|
delete:
|
||||||
@ -1479,6 +1632,8 @@ paths:
|
|||||||
description: invalid password
|
description: invalid password
|
||||||
'404':
|
'404':
|
||||||
description: article not found
|
description: article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -1516,6 +1671,8 @@ paths:
|
|||||||
description: field, article not found
|
description: field, article not found
|
||||||
'405':
|
'405':
|
||||||
description: invalid field
|
description: invalid field
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -1541,6 +1698,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: article not found
|
description: article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -1585,6 +1744,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: group or article not found
|
description: group or article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
delete:
|
delete:
|
||||||
@ -1614,6 +1775,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: group or article not found
|
description: group or article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -1645,6 +1808,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: label or article not found
|
description: label or article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
delete:
|
delete:
|
||||||
@ -1674,6 +1839,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: label or article not found
|
description: label or article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -1703,6 +1870,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/Asset'
|
$ref: '#/components/schemas/Asset'
|
||||||
'401':
|
'401':
|
||||||
description: invalid token
|
description: invalid token
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
post:
|
post:
|
||||||
@ -1740,6 +1909,8 @@ paths:
|
|||||||
description: article not found
|
description: article not found
|
||||||
'406':
|
'406':
|
||||||
description: storage limit reached
|
description: storage limit reached
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -1785,6 +1956,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: asset or article not found
|
description: asset or article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
delete:
|
delete:
|
||||||
@ -1814,6 +1987,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: asset or article not found
|
description: asset or article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -1839,6 +2014,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: article not found
|
description: article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -1889,6 +2066,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: article not found
|
description: article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -1940,6 +2119,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: block or article not found
|
description: block or article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -1991,6 +2172,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: block or article not found
|
description: block or article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2028,6 +2211,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: article not found
|
description: article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2063,6 +2248,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: tag or article not found
|
description: tag or article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
delete:
|
delete:
|
||||||
@ -2092,6 +2279,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: tag or article not found
|
description: tag or article not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2135,6 +2324,8 @@ paths:
|
|||||||
description: field, tag or article not found
|
description: field, tag or article not found
|
||||||
'405':
|
'405':
|
||||||
description: invalid field
|
description: invalid field
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2157,6 +2348,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/Label'
|
$ref: '#/components/schemas/Label'
|
||||||
'401':
|
'401':
|
||||||
description: invalid token
|
description: invalid token
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
post:
|
post:
|
||||||
@ -2171,6 +2364,8 @@ paths:
|
|||||||
description: success
|
description: success
|
||||||
'401':
|
'401':
|
||||||
description: permission denied
|
description: permission denied
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -2207,6 +2402,8 @@ paths:
|
|||||||
description: successful operation
|
description: successful operation
|
||||||
'401':
|
'401':
|
||||||
description: invalid token
|
description: invalid token
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -2243,6 +2440,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: label not found
|
description: label not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2275,6 +2474,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: group or label not found
|
description: group or label not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
delete:
|
delete:
|
||||||
@ -2304,6 +2505,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: group or label not found
|
description: group or label not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2326,6 +2529,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/Dialogue'
|
$ref: '#/components/schemas/Dialogue'
|
||||||
'401':
|
'401':
|
||||||
description: permission denied
|
description: permission denied
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
post:
|
post:
|
||||||
@ -2346,6 +2551,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/Dialogue'
|
$ref: '#/components/schemas/Dialogue'
|
||||||
'401':
|
'401':
|
||||||
description: permission denied
|
description: permission denied
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2371,6 +2578,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: dialogue not found
|
description: dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -2409,6 +2618,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: dialogue not found
|
description: dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -2445,6 +2656,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: cardId or dialogue not found
|
description: cardId or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
delete:
|
delete:
|
||||||
@ -2474,6 +2687,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: cardId or dialogue not found
|
description: cardId or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2499,6 +2714,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: dialogue not found
|
description: dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -2530,6 +2747,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: dialogue not found
|
description: dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2559,6 +2778,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/Insight'
|
$ref: '#/components/schemas/Insight'
|
||||||
'401':
|
'401':
|
||||||
description: permission denied
|
description: permission denied
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2589,6 +2810,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: dialogue not found
|
description: dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -2618,6 +2841,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: dialogue not found
|
description: dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2645,6 +2870,8 @@ paths:
|
|||||||
description: invalid state # once dismissed always dismissed
|
description: invalid state # once dismissed always dismissed
|
||||||
'404':
|
'404':
|
||||||
description: insight not found
|
description: insight not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -2696,6 +2923,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: dialogue not found
|
description: dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2741,6 +2970,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: block or dialogue not found
|
description: block or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2792,6 +3023,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: block or dialogue not found
|
description: block or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2831,6 +3064,8 @@ paths:
|
|||||||
description: inactive dialogue
|
description: inactive dialogue
|
||||||
'404':
|
'404':
|
||||||
description: dialogue not found
|
description: dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2866,6 +3101,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: topic or dialogue not found
|
description: topic or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
delete:
|
delete:
|
||||||
@ -2897,6 +3134,8 @@ paths:
|
|||||||
description: inactive dialogue
|
description: inactive dialogue
|
||||||
'404':
|
'404':
|
||||||
description: topic or dilaogue not found
|
description: topic or dilaogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2941,6 +3180,8 @@ paths:
|
|||||||
description: field, topic or dialogue not found
|
description: field, topic or dialogue not found
|
||||||
'405':
|
'405':
|
||||||
description: invalid field
|
description: invalid field
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -2974,6 +3215,8 @@ paths:
|
|||||||
description: inactive dialogue
|
description: inactive dialogue
|
||||||
'404':
|
'404':
|
||||||
description: topic or dialogue not found
|
description: topic or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -3024,6 +3267,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: topic or dialogue not found
|
description: topic or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
post:
|
post:
|
||||||
@ -3067,6 +3312,8 @@ paths:
|
|||||||
description: inactive dialogue
|
description: inactive dialogue
|
||||||
'404':
|
'404':
|
||||||
description: topic or dialogue not found
|
description: topic or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -3118,6 +3365,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: asset, topic or dialogue not found
|
description: asset, topic or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
delete:
|
delete:
|
||||||
@ -3155,6 +3404,8 @@ paths:
|
|||||||
description: inactive dialogue
|
description: inactive dialogue
|
||||||
'404':
|
'404':
|
||||||
description: asset, topic or dialogue not found
|
description: asset, topic or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -3187,6 +3438,8 @@ paths:
|
|||||||
description: inactive dialogue
|
description: inactive dialogue
|
||||||
'404':
|
'404':
|
||||||
description: topic or dialogue not found
|
description: topic or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -3243,6 +3496,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: topic or dialogue not found
|
description: topic or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -3300,6 +3555,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: block, topic or dialogue not found
|
description: block, topic or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -3351,6 +3608,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: block, topic, or dialogue not found
|
description: block, topic, or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -3396,6 +3655,8 @@ paths:
|
|||||||
description: inactive dialogue
|
description: inactive dialogue
|
||||||
'404':
|
'404':
|
||||||
description: topic or dialogue not found
|
description: topic or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
requestBody:
|
requestBody:
|
||||||
@ -3450,6 +3711,8 @@ paths:
|
|||||||
description: permission denied
|
description: permission denied
|
||||||
'404':
|
'404':
|
||||||
description: tag, topic, or dialogue not found
|
description: tag, topic, or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
delete:
|
delete:
|
||||||
@ -3487,6 +3750,8 @@ paths:
|
|||||||
description: inactive dialogue
|
description: inactive dialogue
|
||||||
'404':
|
'404':
|
||||||
description: tag, topic, or dialogue not found
|
description: tag, topic, or dialogue not found
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -3536,6 +3801,8 @@ paths:
|
|||||||
description: field, tag, topic, or dialogue not found
|
description: field, tag, topic, or dialogue not found
|
||||||
'405':
|
'405':
|
||||||
description: invalid field
|
description: invalid field
|
||||||
|
'410':
|
||||||
|
description: account disabled
|
||||||
'500':
|
'500':
|
||||||
description: internal server error
|
description: internal server error
|
||||||
|
|
||||||
@ -3607,11 +3874,11 @@ components:
|
|||||||
Profile:
|
Profile:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
- did
|
- profileId
|
||||||
- revision
|
- revision
|
||||||
- node
|
- node
|
||||||
properties:
|
properties:
|
||||||
did:
|
profileId:
|
||||||
type: string
|
type: string
|
||||||
handle:
|
handle:
|
||||||
type: string
|
type: string
|
||||||
@ -3651,11 +3918,14 @@ components:
|
|||||||
required:
|
required:
|
||||||
- accountId
|
- accountId
|
||||||
- profile
|
- profile
|
||||||
|
- disabled
|
||||||
properties:
|
properties:
|
||||||
accountId:
|
accountId:
|
||||||
type: string
|
type: string
|
||||||
profile:
|
profile:
|
||||||
$ref: '#/components/schemas/Profile'
|
$ref: '#/components/schemas/Profile'
|
||||||
|
disabled:
|
||||||
|
type: boolean
|
||||||
|
|
||||||
App:
|
App:
|
||||||
type: object
|
type: object
|
||||||
@ -4097,7 +4367,7 @@ components:
|
|||||||
enum: [RSA4096, RSA2048]
|
enum: [RSA4096, RSA2048]
|
||||||
publicKey:
|
publicKey:
|
||||||
type: string
|
type: string
|
||||||
format: base64 encoding of account key
|
format: base64 encoding of account public key
|
||||||
signature:
|
signature:
|
||||||
type: string
|
type: string
|
||||||
format: base64 encoding of message signature
|
format: base64 encoding of message signature
|
||||||
|
@ -4,16 +4,16 @@ DataBag provides storage for decentralized identity based self-hosting apps. It
|
|||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
This server was generated by the [swagger-codegen]
|
This server was generated by the [swagger-codegen]
|
||||||
(https://github.com/swagger-databag/swagger-codegen) project.
|
(https://github.com/swagger-api/swagger-codegen) project.
|
||||||
By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub.
|
By using the [OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification) from a remote server, you can easily generate a server stub.
|
||||||
-
|
-
|
||||||
|
|
||||||
To see how to make this your own, look here:
|
To see how to make this your own, look here:
|
||||||
|
|
||||||
[README](https://github.com/swagger-databag/swagger-codegen/blob/master/README.md)
|
[README](https://github.com/swagger-api/swagger-codegen/blob/master/README.md)
|
||||||
|
|
||||||
- API version: 0.0.1
|
- API version: 0.0.1
|
||||||
- Build date: 2022-01-10T22:59:36.877Z[GMT]
|
- Build date: 2022-01-13T04:53:26.618Z[GMT]
|
||||||
|
|
||||||
|
|
||||||
### Running the server
|
### Running the server
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
@ -38,6 +38,11 @@ func GetAccountApps(w http.ResponseWriter, r *http.Request) {
|
|||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetAccountDid(w http.ResponseWriter, r *http.Request) {
|
||||||
|
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
||||||
|
w.WriteHeader(http.StatusOK)
|
||||||
|
}
|
||||||
|
|
||||||
func GetAccountImage(w http.ResponseWriter, r *http.Request) {
|
func GetAccountImage(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
@ -48,6 +53,11 @@ func GetAccountProfile(w http.ResponseWriter, r *http.Request) {
|
|||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func GetAccountStatus(w http.ResponseWriter, r *http.Request) {
|
||||||
|
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
||||||
|
w.WriteHeader(http.StatusOK)
|
||||||
|
}
|
||||||
|
|
||||||
func GetAccountToken(w http.ResponseWriter, r *http.Request) {
|
func GetAccountToken(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
@ -77,3 +87,8 @@ func SetAccountAuthentication(w http.ResponseWriter, r *http.Request) {
|
|||||||
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func SetAccountExport(w http.ResponseWriter, r *http.Request) {
|
||||||
|
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
||||||
|
w.WriteHeader(http.StatusOK)
|
||||||
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
@ -47,6 +47,11 @@ func GetNodeConfig(w http.ResponseWriter, r *http.Request) {
|
|||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ImportAccount(w http.ResponseWriter, r *http.Request) {
|
||||||
|
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
||||||
|
w.WriteHeader(http.StatusOK)
|
||||||
|
}
|
||||||
|
|
||||||
func RemoveNodeAccount(w http.ResponseWriter, r *http.Request) {
|
func RemoveNodeAccount(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
@ -13,7 +13,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Authorize(w http.ResponseWriter, r *http.Request) {
|
func Authenticate(w http.ResponseWriter, r *http.Request) {
|
||||||
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
||||||
w.WriteHeader(http.StatusOK)
|
w.WriteHeader(http.StatusOK)
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
@ -14,4 +14,6 @@ type Account struct {
|
|||||||
AccountId string `json:"accountId"`
|
AccountId string `json:"accountId"`
|
||||||
|
|
||||||
Profile *Profile `json:"profile"`
|
Profile *Profile `json:"profile"`
|
||||||
|
|
||||||
|
Disabled bool `json:"disabled"`
|
||||||
}
|
}
|
||||||
|
18
net/server/internal/model_accounts_import_body.go
Normal file
18
net/server/internal/model_accounts_import_body.go
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
/*
|
||||||
|
* DataBag
|
||||||
|
*
|
||||||
|
* DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations.
|
||||||
|
*
|
||||||
|
* API version: 0.0.1
|
||||||
|
* Contact: roland.osborne@gmail.com
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
package databag
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
)
|
||||||
|
|
||||||
|
type AccountsImportBody struct {
|
||||||
|
|
||||||
|
FileName **os.File `json:"fileName,omitempty"`
|
||||||
|
}
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
import (
|
import (
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,15 +5,15 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
type NodeConfig struct {
|
type NodeConfig struct {
|
||||||
|
|
||||||
Domain string `json:"domain,omitempty"`
|
Domain string `json:"domain"`
|
||||||
|
|
||||||
PublicLimit int64 `json:"publicLimit,omitempty"`
|
PublicLimit int64 `json:"publicLimit"`
|
||||||
|
|
||||||
AccountStorage int64 `json:"accountStorage,omitempty"`
|
AccountStorage int64 `json:"accountStorage"`
|
||||||
}
|
}
|
||||||
|
@ -5,13 +5,13 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
type Profile struct {
|
type Profile struct {
|
||||||
|
|
||||||
Did string `json:"did"`
|
ProfileId string `json:"profileId"`
|
||||||
|
|
||||||
Handle string `json:"handle,omitempty"`
|
Handle string `json:"handle,omitempty"`
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
27
net/server/internal/model_status.go
Normal file
27
net/server/internal/model_status.go
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
* DataBag
|
||||||
|
*
|
||||||
|
* DataBag provides storage for decentralized identity based self-hosting apps. It is intended to support sharing of personal data and hosting group conversations.
|
||||||
|
*
|
||||||
|
* API version: 0.0.1
|
||||||
|
* Contact: roland.osborne@gmail.com
|
||||||
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
|
*/
|
||||||
|
package databag
|
||||||
|
|
||||||
|
type Status struct {
|
||||||
|
|
||||||
|
Profile int64 `json:"profile"`
|
||||||
|
|
||||||
|
Content int64 `json:"content"`
|
||||||
|
|
||||||
|
Label int64 `json:"label"`
|
||||||
|
|
||||||
|
Share int64 `json:"share"`
|
||||||
|
|
||||||
|
Card int64 `json:"card"`
|
||||||
|
|
||||||
|
Dialogue int64 `json:"dialogue"`
|
||||||
|
|
||||||
|
Insight int64 `json:"insight"`
|
||||||
|
}
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
import (
|
import (
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* API version: 0.0.1
|
* API version: 0.0.1
|
||||||
* Contact: roland.osborne@gmail.com
|
* Contact: roland.osborne@gmail.com
|
||||||
* Generated by: Swagger Codegen (https://github.com/swagger-databag/swagger-codegen.git)
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
||||||
*/
|
*/
|
||||||
package databag
|
package databag
|
||||||
|
|
||||||
@ -13,6 +13,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -26,15 +27,6 @@ type Route struct {
|
|||||||
type Routes []Route
|
type Routes []Route
|
||||||
|
|
||||||
func NewRouter() *mux.Router {
|
func NewRouter() *mux.Router {
|
||||||
|
|
||||||
// populate context
|
|
||||||
_configured = getBoolConfigValue(CONFIG_CONFIGURED, false);
|
|
||||||
_adminUsername = getStrConfigValue(CONFIG_USERNAME, "");
|
|
||||||
_adminPassword = getBinConfigValue(CONFIG_PASSWORD, nil);
|
|
||||||
_nodeDomain = getStrConfigValue(CONFIG_DOMAIN, "");
|
|
||||||
_publicLimit = getNumConfigValue(CONFIG_PUBLICLIMIT, 0);
|
|
||||||
_accountStorage = getNumConfigValue(CONFIG_STORAGE, 0);
|
|
||||||
|
|
||||||
router := mux.NewRouter().StrictSlash(true)
|
router := mux.NewRouter().StrictSlash(true)
|
||||||
for _, route := range routes {
|
for _, route := range routes {
|
||||||
var handler http.Handler
|
var handler http.Handler
|
||||||
@ -98,6 +90,13 @@ var routes = Routes{
|
|||||||
GetAccountApps,
|
GetAccountApps,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Route{
|
||||||
|
"GetAccountDid",
|
||||||
|
strings.ToUpper("Get"),
|
||||||
|
"/account/did",
|
||||||
|
GetAccountDid,
|
||||||
|
},
|
||||||
|
|
||||||
Route{
|
Route{
|
||||||
"GetAccountImage",
|
"GetAccountImage",
|
||||||
strings.ToUpper("Get"),
|
strings.ToUpper("Get"),
|
||||||
@ -112,6 +111,13 @@ var routes = Routes{
|
|||||||
GetAccountProfile,
|
GetAccountProfile,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Route{
|
||||||
|
"GetAccountStatus",
|
||||||
|
strings.ToUpper("Get"),
|
||||||
|
"/account/disabled",
|
||||||
|
GetAccountStatus,
|
||||||
|
},
|
||||||
|
|
||||||
Route{
|
Route{
|
||||||
"GetAccountToken",
|
"GetAccountToken",
|
||||||
strings.ToUpper("Get"),
|
strings.ToUpper("Get"),
|
||||||
@ -154,6 +160,13 @@ var routes = Routes{
|
|||||||
SetAccountAuthentication,
|
SetAccountAuthentication,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Route{
|
||||||
|
"SetAccountExport",
|
||||||
|
strings.ToUpper("Put"),
|
||||||
|
"/account/export",
|
||||||
|
SetAccountExport,
|
||||||
|
},
|
||||||
|
|
||||||
Route{
|
Route{
|
||||||
"AddNodeAccount",
|
"AddNodeAccount",
|
||||||
strings.ToUpper("Post"),
|
strings.ToUpper("Post"),
|
||||||
@ -189,6 +202,13 @@ var routes = Routes{
|
|||||||
GetNodeConfig,
|
GetNodeConfig,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Route{
|
||||||
|
"ImportAccount",
|
||||||
|
strings.ToUpper("Post"),
|
||||||
|
"/admin/accounts/import",
|
||||||
|
ImportAccount,
|
||||||
|
},
|
||||||
|
|
||||||
Route{
|
Route{
|
||||||
"RemoveNodeAccount",
|
"RemoveNodeAccount",
|
||||||
strings.ToUpper("Delete"),
|
strings.ToUpper("Delete"),
|
||||||
@ -218,10 +238,10 @@ var routes = Routes{
|
|||||||
},
|
},
|
||||||
|
|
||||||
Route{
|
Route{
|
||||||
"Authorize",
|
"Authenticate",
|
||||||
strings.ToUpper("Put"),
|
strings.ToUpper("Put"),
|
||||||
"/authorize",
|
"/authorize",
|
||||||
Authorize,
|
Authenticate,
|
||||||
},
|
},
|
||||||
|
|
||||||
Route{
|
Route{
|
||||||
|
@ -45,7 +45,10 @@ type AccountToken struct {
|
|||||||
|
|
||||||
type Account struct {
|
type Account struct {
|
||||||
ID uint `gorm:"primaryKey;not null;unique;autoIncrement"`
|
ID uint `gorm:"primaryKey;not null;unique;autoIncrement"`
|
||||||
Did string `gorm:"not null"`
|
PublicKey []byte `gorm:"not null"`
|
||||||
|
PrivateKey []byte `gorm:"not null"`
|
||||||
|
KeyType []byte `gorm:"not null"`
|
||||||
|
ProfileId string `gorm:"not null;uniqueIndex"`
|
||||||
Username string `gorm:"not null;uniqueIndex"`
|
Username string `gorm:"not null;uniqueIndex"`
|
||||||
Password []byte `gorm:"not null"`
|
Password []byte `gorm:"not null"`
|
||||||
Name string
|
Name string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user