From c6861cc72d385011441fbda4e77a259cbe97e570 Mon Sep 17 00:00:00 2001 From: Julian Weng Date: Mon, 11 Nov 2024 02:17:50 -0500 Subject: [PATCH] Add docs to approval history endpoint --- backend/clubs/views.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/backend/clubs/views.py b/backend/clubs/views.py index 461b36466..598830918 100644 --- a/backend/clubs/views.py +++ b/backend/clubs/views.py @@ -1281,6 +1281,35 @@ def upload_file(self, request, *args, **kwargs): def history(self, request, *args, **kwargs): """ Return a simplified approval history for the club. + --- + responses: + "200": + content: + application/json: + schema: + type: array + items: + type: object + properties: + approved: + type: boolean + approved_on: + type: string + format: date-time + approved_by: + type: string + description: > + The full name of the user who approved + the club. + approved_comment: + type: string + history_date: + type: string + format: date-time + description: > + The time in which the specific version + of the club was saved at. + --- """ club = self.get_object() return Response(