feat: add API documentation with drf-spectacular and refactor views #31

Merged
Saani merged 1 commits from feature/meetings into main 2025-11-24 13:31:18 +00:00
Owner
  • Install and configure drf-spectacular for OpenAPI/Swagger documentation
  • Add Swagger UI endpoints at /api/schema/ and /api/docs/
  • Configure SPECTACULAR_SETTINGS with API metadata
  • Refactor meetings views from function-based to class-based views
    (ScheduleAppointmentView, RejectAppointmentView, AvailableDatesView,
    UserAppointmentsView, AppointmentStatsView, UserAppointmentStatsView)
  • Update URL patterns to use new class-based views
  • Simplify ALLOWED_HOSTS configuration to accept all hosts

This improves API discoverability through interactive documentation
and modernizes the codebase by using class-based views for better
code organization and reusability.

- Install and configure drf-spectacular for OpenAPI/Swagger documentation - Add Swagger UI endpoints at /api/schema/ and /api/docs/ - Configure SPECTACULAR_SETTINGS with API metadata - Refactor meetings views from function-based to class-based views (ScheduleAppointmentView, RejectAppointmentView, AvailableDatesView, UserAppointmentsView, AppointmentStatsView, UserAppointmentStatsView) - Update URL patterns to use new class-based views - Simplify ALLOWED_HOSTS configuration to accept all hosts This improves API discoverability through interactive documentation and modernizes the codebase by using class-based views for better code organization and reusability.
Saani added 1 commit 2025-11-24 13:31:11 +00:00
- Install and configure drf-spectacular for OpenAPI/Swagger documentation
- Add Swagger UI endpoints at /api/schema/ and /api/docs/
- Configure SPECTACULAR_SETTINGS with API metadata
- Refactor meetings views from function-based to class-based views
  (ScheduleAppointmentView, RejectAppointmentView, AvailableDatesView,
  UserAppointmentsView, AppointmentStatsView, UserAppointmentStatsView)
- Update URL patterns to use new class-based views
- Simplify ALLOWED_HOSTS configuration to accept all hosts

This improves API discoverability through interactive documentation
and modernizes the codebase by using class-based views for better
code organization and reusability.
Saani merged commit 4b86761ddc into main 2025-11-24 13:31:18 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ATTUNE-HEART-THERAPY/alternative-backend-service#31
No description provided.