update workgroup in OpenApi

This commit is contained in:
2020-06-02 01:01:29 +02:00
parent 32510652d1
commit 9b79301662

View File

@@ -1012,23 +1012,14 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: array $ref: '#/components/schemas/MembersRequest'
items:
type: object
properties:
id:
type: string
format: uuid
example: 6434f4f9-f570-f22a-c134-8668350651ff
responses: responses:
201: 201:
description: the list of members description: the list of members
content: content:
application/json: application/json:
schema: schema:
type: array $ref: '#/components/schemas/MembersResponse'
items:
$ref: '#/components/schemas/CitizenResponse'
put: put:
security: security:
- JWTAuth: [] - JWTAuth: []
@@ -1038,23 +1029,14 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: array $ref: '#/components/schemas/MembersRequest'
items:
type: object
properties:
id:
type: string
format: uuid
example: 6434f4f9-f570-f22a-c134-8668350651ff
responses: responses:
201: 201:
description: the list of members description: the list of members
content: content:
application/json: application/json:
schema: schema:
type: array $ref: '#/components/schemas/MembersResponse'
items:
$ref: '#/components/schemas/CitizenResponse'
delete: delete:
security: security:
- JWTAuth: [] - JWTAuth: []
@@ -1064,23 +1046,14 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: array $ref: '#/components/schemas/MembersRequest'
items:
type: object
properties:
id:
type: string
format: uuid
example: 6434f4f9-f570-f22a-c134-8668350651ff
responses: responses:
200: 200:
description: the list of members description: the list of members
content: content:
application/json: application/json:
schema: schema:
type: array $ref: '#/components/schemas/MembersResponse'
items:
$ref: '#/components/schemas/CitizenResponse'
components: components:
responses: responses:
@@ -1717,15 +1690,20 @@ components:
- type: object - type: object
properties: properties:
members: members:
$ref: '#/components/schemas/Members' $ref: '#/components/schemas/MembersResponse'
- $ref: '#/components/schemas/CreatedAt' - $ref: '#/components/schemas/CreatedAt'
- $ref: '#/components/schemas/UpdatedAt' - $ref: '#/components/schemas/UpdatedAt'
Members: MembersRequest:
description: members of workgroup description: members of workgroup
type: array type: array
items: items:
$ref: '#/components/schemas/Member' $ref: '#/components/schemas/MemberRequest'
Member: MembersResponse:
description: members of workgroup
type: array
items:
$ref: '#/components/schemas/MemberResponse'
MemberResponse:
description: Member of workgroup description: Member of workgroup
type: object type: object
properties: properties:
@@ -1741,6 +1719,22 @@ components:
- EDITOR - EDITOR
- REPORTER - REPORTER
example: MASTER example: MASTER
MemberRequest:
description: Member of workgroup
type: object
properties:
citizen:
$ref: '#/components/schemas/UuidEntity'
roles:
type: array
items:
type: string
enum:
- MASTER
- MANAGER
- EDITOR
- REPORTER
example: MASTER