stamford-syntax-club / course-compose

Course Compose is a course-review website tailored for Stamford students, providing a platform for sharing and discovering insights about various courses
MIT License
2 stars 0 forks source link

feat: approve/reject review api #26

Closed chinathaip closed 9 months ago

chinathaip commented 10 months ago

PUT /api/admin/reviews

Requires admin credentials (Basic Auth). This API is to be used by the admin dashboard

Request Body

Approve

{
    "id": 3,
    "status": "APPROVED"
}

Reject

{
  "id": 3,
  "status": "REJECTED",
  "rejectedReason": "Contains curse words"
}
chinathaip commented 9 months ago

~~putting this back to draft - will reconsider how the pending reviews are stored https://github.com/stamford-syntax-club/course-compose/issues/31~~

Will continue with the current implementation