Skip to content

Commit

Permalink
Add docs to approval history endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
julianweng committed Nov 11, 2024
1 parent 835355d commit c6861cc
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions backend/clubs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c6861cc

Please sign in to comment.