[P0] Add Course Review Model & Endpoints
Closed this issue · 0 comments
SirajChokshi commented
Endpoints:
- Route
/reviews
- GET - all reviews with filters (by class, etc)
- POST - create new review, generate an ID, and return it
- Route
/reviews/<id>
- GET - a review of the specified ID
- PATCH - update this review
Model:
id: string
title: string
rating: int[range: 0,5]
desc: string
lastEdited: Date
created: Date
author: UserID