Closed angadb27 closed 9 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated (UTC) |
---|---|---|---|
cs-472-group-2-project | ✅ Ready (Inspect) | Visit Preview | Dec 3, 2023 3:30am |
cs-472-group-2-project-backend | ✅ Ready (Inspect) | Visit Preview | Dec 3, 2023 3:30am |
Attention: 2 lines
in your changes are missing coverage. Please review.
Comparison is base (
8421f30
) 91.14% compared to head (f6ce63e
) 92.04%.
Files | Patch % | Lines |
---|---|---|
api/review/serializers.py | 95.45% | 1 Missing :warning: |
api/school/admin.py | 93.33% | 1 Missing :warning: |
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
WHAT DOES THIS PR DO?
school/models.py
includesfirst_name
,last_name
, and a many-to-many relationship withschools
andcourses
.professor
and thecourse
the professor belongs to. Also added evaluation questions to the model.{base_url}/reviews/{school_short_name}/{course_subject_catalog}
, leverages the school'sshort name
and a combination of thecourse's subject
andcatalog number
to filter and present relevant reviews.review/views.py
WHAT ISSUES ARE RELATED TO THIS PR?
HOW DO I TEST OUT THIS PR? Run this project locally and test the updated endpoints: Base URL:
http://localhost:8000/api/v1
. To test the endpoints, go tohttp://localhost:8000/api/v1/reviews/
- Use django restframework UI to try out the endpointsTesting Endpoints:
POST /reviews/
PUT /reviews/{review_id}/
Replace
{review_id}
with the UUID of the review you wish to update. Send a JSON payload with the updated details of the review. (same as POST request body)GET /reviews/{school_short_name}/{course_subject_catalog}
Replace
{school_short_name}
with the short name of the school and{course_subject_catalog}
with the combined subject and catalog number of the course to retrieve all reviews for that specific course.ADDITIONAL INFORMATION