1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-22 23:58:26 +02:00

Add API documentation link for GDrive notifications

This commit is contained in:
Emmy D'Anello
2025-03-09 12:01:06 +01:00
parent e3c216e44e
commit cfaf7c4287
2 changed files with 13 additions and 0 deletions

View File

@ -1955,6 +1955,13 @@ class NotationSheetsArchiveView(VolunteerMixin, DetailView):
@method_decorator(csrf_exempt, name='dispatch')
class GSheetNotificationsView(View):
"""
Cette vue gère les notifications envoyées par Google Drive en cas de
modifications d'un tableur de notes sur Google Sheets.
Documentation de l'API : https://developers.google.com/calendar/api/guides/push?hl=fr
"""
async def post(self, request, *args, **kwargs):
if not await Tournament.objects.filter(pk=kwargs['pk']).aexists():
return HttpResponse(status=404)