From 2d21f44ede55d99ad857d2eb089c96ac9cccb9bc Mon Sep 17 00:00:00 2001 From: Arya Khochare <91268931+Aryakoste@users.noreply.github.com> Date: Tue, 19 Nov 2024 14:59:17 +0530 Subject: [PATCH] Fixed API return type in documentation (#28984) Co-authored-by: Ben Schumacher --- api/v4/source/definitions.yaml | 13 +++++++++++++ api/v4/source/groups.yaml | 8 ++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/api/v4/source/definitions.yaml b/api/v4/source/definitions.yaml index a4d3cb94583..b0871a81474 100644 --- a/api/v4/source/definitions.yaml +++ b/api/v4/source/definitions.yaml @@ -3059,6 +3059,19 @@ components: format: int64 has_syncables: type: boolean + GroupMember: + type: object + properties: + group_id: + type: string + user_id: + type: string + create_at: + type: integer + format: int64 + delete_at: + type: integer + format: int64 GroupSyncableTeam: type: object properties: diff --git a/api/v4/source/groups.yaml b/api/v4/source/groups.yaml index ced5d1221e5..d6794963846 100644 --- a/api/v4/source/groups.yaml +++ b/api/v4/source/groups.yaml @@ -854,7 +854,9 @@ content: application/json: schema: - $ref: "#/components/schemas/StatusOK" + type: array + items: + $ref: "#/components/schemas/GroupMember" post: tags: - groups @@ -898,7 +900,9 @@ content: application/json: schema: - $ref: "#/components/schemas/StatusOK" + type: array + items: + $ref: "#/components/schemas/GroupMember" "/api/v4/groups/{group_id}/stats": get: tags: