updated sharing module descriptions

This commit is contained in:
balzack 2022-01-03 09:21:18 -08:00
parent d28ca900be
commit bb51b7dd17

301
api.oa3
View File

@ -533,6 +533,8 @@ paths:
format: binary format: binary
'401': '401':
description: invalid token description: invalid token
'405':
description: invalid image
'500': '500':
description: internal server error description: internal server error
@ -558,19 +560,10 @@ paths:
get: get:
tags: tags:
- share - share
description: Get groups for sharing description: Get groups for sharing. Access granted to app tokens of the account holder.
operationId: get-share-groups operationId: get-groups
security: security:
- bearerAuth: [] - bearerAuth: []
parameters:
- name: types
in: query
description: limit resutls to groups of types
required: false
schema:
type: array
items:
type: string
responses: responses:
'200': '200':
description: successful operation description: successful operation
@ -587,15 +580,15 @@ paths:
post: post:
tags: tags:
- share - share
description: Add a group for sharing description: Add a group for sharing. Access granted to app tokens of account holder.
operationId: add-share-group operationId: add-group
security: security:
- bearerAuth: [] - bearerAuth: []
responses: responses:
'201': '200':
description: entry created description: entry created
'401': '401':
description: invalid token description: permission denied
'500': '500':
description: internal server error description: internal server error
requestBody: requestBody:
@ -616,8 +609,8 @@ paths:
put: put:
tags: tags:
- share - share
description: Update group for sharing description: Update group description for sharing. Access granted to app tokens of account holder.
operationId: update-share-group operationId: update-group
security: security:
- bearerAuth: [] - bearerAuth: []
parameters: parameters:
@ -629,9 +622,11 @@ paths:
type: string type: string
responses: responses:
'200': '200':
description: successful operation description: success
'401': '401':
description: invalid token description: permission denied
'404':
description: group not found
'500': '500':
description: internal server error description: internal server error
requestBody: requestBody:
@ -650,8 +645,8 @@ paths:
delete: delete:
tags: tags:
- share - share
description: Get groups for sharing description: Remove sharing group
operationId: remove-share-group operationId: remove-group
security: security:
- bearerAuth: [] - bearerAuth: []
parameters: parameters:
@ -663,9 +658,11 @@ paths:
type: string type: string
responses: responses:
'200': '200':
description: successful operation description: success
'401': '401':
description: invalid token description: permission denied
'404':
description: group not found
'500': '500':
description: internal server error description: internal server error
@ -852,7 +849,15 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/CardStatus' type: object
required:
- status
properties:
token:
type: string
status:
type: string
enum: [ pending, confirmed, requested, connecting, connected ]
'400': '400':
description: invalid data message description: invalid data message
'500': '500':
@ -909,7 +914,15 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/CardStatus' type: object
required:
- status
properties:
token:
type: string
status:
type: string
enum: [ pending, confirmed, requested, connecting, connected ]
'400': '400':
description: invalid data message description: invalid data message
'500': '500':
@ -924,8 +937,8 @@ paths:
get: get:
tags: tags:
- contact - contact
description: Get profile of card entry. description: Get profile of card entry. Access granted to app tokens of account holder.
operationId: get-contact-profile operationId: get-card-profile
security: security:
- bearerAuth: [] - bearerAuth: []
parameters: parameters:
@ -951,8 +964,8 @@ paths:
put: put:
tags: tags:
- contact - contact
description: Set profile of card entry description: Set profile of card entry. Access granted to app tokens of account holder.
operationId: set-contact-profile operationId: set-card-profile
security: security:
- bearerAuth: [] - bearerAuth: []
parameters: parameters:
@ -964,15 +977,15 @@ paths:
type: string type: string
responses: responses:
'200': '200':
description: successful operation description: success
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/DataMessage' $ref: '#/components/schemas/DataMessage'
'401': '401':
description: invalid password description: permission denied
'404': '404':
description: not found description: card not found
'500': '500':
description: internal server error description: internal server error
requestBody: requestBody:
@ -985,8 +998,8 @@ paths:
get: get:
tags: tags:
- contact - contact
description: Get profile of card entry description: Get image of card profile. Access granted to app tokens of account holder.
operationId: get-contact-profile-image operationId: get-card-profile-image
security: security:
- bearerAuth: [] - bearerAuth: []
parameters: parameters:
@ -1005,9 +1018,11 @@ paths:
type: string type: string
format: binary format: binary
'401': '401':
description: invalid password description: permission denied
'404': '404':
description: not found description: card not found
'405':
description: invalid image
'500': '500':
description: internal server error description: internal server error
@ -1015,8 +1030,8 @@ paths:
get: get:
tags: tags:
- contact - contact
description: Get data of card entry description: Get specified card data. Access granted to app tokens for account holder.
operationId: get-contact-data operationId: get-card-data
security: security:
- bearerAuth: [] - bearerAuth: []
parameters: parameters:
@ -1028,15 +1043,15 @@ paths:
type: string type: string
responses: responses:
'200': '200':
description: successful operation description: success
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/CardData' $ref: '#/components/schemas/CardData'
'401': '401':
description: invalid password description: permission denied
'404': '404':
description: not found description: card not found
'500': '500':
description: internal server error description: internal server error
@ -1044,8 +1059,8 @@ paths:
put: put:
tags: tags:
- contact - contact
description: Update card notes description: Update card notes for specified card. Access granted to app tokens for account holder.
operationId: set-contact-card-notes operationId: set-card-notes
security: security:
- bearerAuth: [] - bearerAuth: []
parameters: parameters:
@ -1057,15 +1072,15 @@ paths:
type: string type: string
responses: responses:
'200': '200':
description: successful operation description: success
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/CardData' $ref: '#/components/schemas/CardData'
'401': '401':
description: invalid password description: permission denied
'404': '404':
description: not found description: card not found
'500': '500':
description: internal server error description: internal server error
requestBody: requestBody:
@ -1076,8 +1091,8 @@ paths:
delete: delete:
tags: tags:
- contact - contact
description: Clear card notes description: Clear notes for specified card. Access granted to app tokens of account holder.
operationId: clear-contact-card-notes operationId: clear-card-notes
security: security:
- bearerAuth: [] - bearerAuth: []
parameters: parameters:
@ -1089,24 +1104,24 @@ paths:
type: string type: string
responses: responses:
'200': '200':
description: successful operation description: success
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/CardData' $ref: '#/components/schemas/CardData'
'401': '401':
description: invalid password description: permission denied
'404': '404':
description: not found description: card not found
'500': '500':
description: internal server error description: internal server error
/contact/cards/{cardId}/shares/{shareId}: /contact/cards/{cardId}/groups/{groupId}:
put: put:
tags: tags:
- contact - contact
description: Update card notes description: Set sharing group for contact. Access granted to app tokens for account holder.
operationId: set-contact-card-share operationId: set-card-group
security: security:
- bearerAuth: [] - bearerAuth: []
parameters: parameters:
@ -1116,7 +1131,40 @@ paths:
required: true required: true
schema: schema:
type: string type: string
- name: shareId - name: groupId
in: path
description: specified group id
required: true
schema:
type: string
responses:
'200':
description: success
content:
application/json:
schema:
$ref: '#/components/schemas/CardData'
'401':
description: permission denied
'404':
description: card or group not found
'500':
description: internal server error
delete:
tags:
- contact
description: Clear sharing group for card. Access granted to app tokens for account holder.
operationId: clear-card-group
security:
- bearerAuth: []
parameters:
- name: cardId
in: path
description: specified card id
required: true
schema:
type: string
- name: groupId
in: path in: path
description: specified share id description: specified share id
required: true required: true
@ -1124,120 +1172,15 @@ paths:
type: string type: string
responses: responses:
'200': '200':
description: successful operation description: success
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/CardData' $ref: '#/components/schemas/CardData'
'401': '401':
description: invalid password description: permission denied
'404': '404':
description: not found description: card or group not found
'500':
description: internal server error
delete:
tags:
- contact
description: Clear card share group
operationId: clear-contact-card-share
security:
- bearerAuth: []
parameters:
- name: cardId
in: path
description: specified card id
required: true
schema:
type: string
- name: shareId
in: path
description: specified share id
required: true
schema:
type: string
responses:
'200':
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/CardData'
'401':
description: invalid password
'404':
description: not found
'500':
description: internal server error
/contact/blocked:
get:
tags:
- contact
description: Get list of blocked cards
operationId: get-contact-blocked-cards
security:
- bearerAuth: []
responses:
'200':
description: successful operation
content:
application/json:
schema:
type: array
items:
type: string
'401':
description: invalid password
'404':
description: not found
'500':
description: internal server error
/contact/blocked/{cardId}:
post:
tags:
- contact
description: Add card from blocked list
operationId: add-contact-blocked-card
security:
- bearerAuth: []
parameters:
- name: cardId
in: path
description: specified card id
required: true
schema:
type: string
responses:
'200':
description: successful operation
'401':
description: invalid password
'404':
description: not found
'500':
description: internal server error
delete:
tags:
- contact
description: Remove card from blocked list
operationId: remove-contact-blocked-card
security:
- bearerAuth: []
parameters:
- name: cardId
in: path
description: specified card id
required: true
schema:
type: string
responses:
'200':
description: successful operation
'401':
description: invalid password
'404':
description: not found
'500': '500':
description: internal server error description: internal server error
@ -1245,8 +1188,8 @@ paths:
put: put:
tags: tags:
- contact - contact
description: Hook receiver for card profile revision updates description: Set profile revision for contact. This is intend to be invoked automatically anytime a contact updates their profile. Access granted to contact tokens.
operationId: revision-profile-hook operationId: set-profile-revision
security: security:
- bearerAuth: [] - bearerAuth: []
responses: responses:
@ -1267,8 +1210,8 @@ paths:
put: put:
tags: tags:
- contact - contact
description: Hook receiver for card content revision updates description: Set content revision for contact. This is intend to be invoked automatically anytime a contact updates their content or sharing. Access granted to contact tokens.
operationId: revision-content-hook operationId: set-content-revision
security: security:
- bearerAuth: [] - bearerAuth: []
responses: responses:
@ -2142,15 +2085,6 @@ paths:
operationId: get-labels operationId: get-labels
security: security:
- bearerAuth: [] - bearerAuth: []
parameters:
- name: types
in: query
description: limit results to labels of types
required: false
schema:
type: array
items:
type: string
responses: responses:
'200': '200':
description: successful operation description: successful operation
@ -3731,8 +3665,8 @@ components:
format: int64 format: int64
status: status:
type: string type: string
enum: [ pending, confirmed, connecting, connected ] enum: [ pending, confirmed, requested, connecting, connected ]
details: notes:
type: string type: string
token: token:
type: string type: string
@ -3741,17 +3675,6 @@ components:
items: items:
type: string type: string
CardStatus:
type: object
required:
- status
properties:
status:
type: string
enum: [ pending, confirmed, requested, connecting, connected ]
token:
type: string
Card: Card:
type: object type: object
required: required: