diff --git a/src/main/resources/openapi2.yaml b/src/main/resources/openapi2.yaml index 00f8ce7..b4be58a 100644 --- a/src/main/resources/openapi2.yaml +++ b/src/main/resources/openapi2.yaml @@ -40,32 +40,7 @@ paths: type: array maxItems: 50 items: - required: - - id - - title - - createdBy - - workgroup - - draft - properties: - id: - type: string - format: uuid - title: - type: string - createdBy: - $ref: '#/components/schemas/CitizenCreator' - workgroup: - type: object - nullable: true - additionalProperties: false - properties: - id: - type: string - format: uuid - name: - type: string - draft: - type: boolean + $ref: '#/components/schemas/ArticleListingResponse' post: security: - JWTAuth: [] @@ -968,6 +943,33 @@ components: type: integer score: type: integer + ArticleListingResponse: + required: + - id + - title + - createdBy + - workgroup + - draft + properties: + id: + type: string + format: uuid + title: + type: string + createdBy: + $ref: '#/components/schemas/CitizenCreator' + workgroup: + type: object + nullable: true + additionalProperties: false + properties: + id: + type: string + format: uuid + name: + type: string + draft: + type: boolean CitizenListResponse: additionalProperties: false