1 comment (1 comment)0 reactions (0 reactions)0 assignees (0 assignees)JavaScript6 forks (6 forks)auto 404
backendgood first issue
Repository metrics
- Stars
- 1 star (1 star)
- PR merge metrics
- PR metrics pending (PR metrics pending)
Description
Tasks
- Create a route (ex "/api/class/<class_id>") that will return information about the class in JSON
- If the user is not authenticated as the user that we are looking up return a 401 (unauthorized) status code instead
- If the id does not exist, send a 404 (not found) response
Contributor guide
- Research direction
- Explore the existing codebase to understand how routes and authentication are currently set up. Look at other API endpoints for patterns. Then implement the '/api/class/<class id>' route with authentication checks and appropriate error responses.
- Tech stack
- javascript
- Domain
- backendapi
- Issue type
- Feature
- Prerequisites
- Node.jsExpressAuthentication basics