Merge pull request 'feat(api): change user appointment stats endpoint to POST method' (#39) from feature/meetings into main

Reviewed-on: https://gitea.blackbusinesslabs.com/ATTUNE-HEART-THERAPY/alternative-backend-service/pulls/39
This commit is contained in:
Saani 2025-11-26 16:21:17 +00:00
commit 45f49544c2

View File

@ -297,8 +297,9 @@ def api_root(request, format=None):
"user_appointment_stats": { "user_appointment_stats": {
"description": "Get appointment statistics and analytics for the authenticated user", "description": "Get appointment statistics and analytics for the authenticated user",
"url": request.build_absolute_uri("/api/meetings/user/appointments/stats/"), "url": request.build_absolute_uri("/api/meetings/user/appointments/stats/"),
"methods": ["GET"], "methods": ["POST"],
"authentication": "Required", "authentication": "Required",
"required_fields": ["email"],
"response_fields": { "response_fields": {
"total_requests": "Total number of appointment requests", "total_requests": "Total number of appointment requests",
"pending_review": "Number of pending review requests", "pending_review": "Number of pending review requests",