beaubhp / bit-backend

Backend for Bit Project LMS (Learning Management System)
0 stars 0 forks source link

Add CRUD capabilities for a supervisor who is assigned students and a single teacher #11

Open beaubhp opened 1 month ago

ghost commented 1 month ago

Please note, Sherpa may occasionally provide incomplete or inaccurate information. Always verify critical details and double-check suggested changes before implementation.

Problem Summary

The issue is to add CRUD (Create, Read, Update, Delete) capabilities for a supervisor who is assigned students and a single teacher within the bit-backend repository. This involves creating or modifying existing endpoints and possibly database models to support these operations.

Relevant Files

Changes Required

backend/models.py

backend/classrooms/decorators.py

backend/classrooms/schemas.py

backend/classrooms/utils.py

backend/classrooms/views.py

Next Steps

  1. Model Adjustments: Verify and adjust the data models to ensure all necessary relationships for supervisors are established.
  2. Schema and Validation: Ensure new schemas are properly defined for data validation.
  3. API Implementation: Implement the CRUD endpoints and test them for expected behavior.
  4. Access Control: Apply necessary access control to protect the endpoints.
  5. Testing: Write unit and integration tests to ensure the new functionality works as expected.

By following these steps, you will be able to add CRUD capabilities for supervisors in your application.