From bf339e2de2e62e754e05089f4c7b17f27b8b1351 Mon Sep 17 00:00:00 2001 From: jellejurre Date: Mon, 3 Mar 2025 20:16:08 +0100 Subject: [PATCH] Fix group posts api --- openapi/components/paths/groups.yaml | 4 ++-- .../responses/groups/GroupPostsResponse.yaml | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 openapi/components/responses/groups/GroupPostsResponse.yaml diff --git a/openapi/components/paths/groups.yaml b/openapi/components/paths/groups.yaml index 733b6d2b..5c01690d 100644 --- a/openapi/components/paths/groups.yaml +++ b/openapi/components/paths/groups.yaml @@ -657,7 +657,7 @@ paths: get: summary: Get posts from a Group description: Get posts from a Group - operationId: getGroupPost + operationId: getGroupPosts tags: - groups parameters: @@ -670,7 +670,7 @@ paths: description: See public posts only. responses: '200': - $ref: ../responses/groups/GroupPostResponse.yaml + $ref: ../responses/groups/GroupPostsResponse.yaml '401': $ref: ../responses/MissingCredentialsError.yaml security: diff --git a/openapi/components/responses/groups/GroupPostsResponse.yaml b/openapi/components/responses/groups/GroupPostsResponse.yaml new file mode 100644 index 00000000..6c22605a --- /dev/null +++ b/openapi/components/responses/groups/GroupPostsResponse.yaml @@ -0,0 +1,10 @@ +description: Returns a GroupPost Array. +content: + application/json: + schema: + type: object + properties: + posts: + type: array + items: + $ref: ../../schemas/GroupPost.yaml \ No newline at end of file