Description
Create the CRUD (Create, Read, Update, Delete) API routes for the users table.
Users table
POST /users - create a user
GET /users - get all users
GET /users/{id} - get a single user
PUT /users/{id} - update a single user
DELETE /users/{id} - delete a single user
Recommended Steps
- Create a new branch (you can create it right from the issue in the right sidebar under "Development")
- Review the
users table schema
- Create
users.js file in /server/routes
- Implement CRUD routes for the
users table (Create, Read, Update, Delete)
- Implement validation and error handling for all routes
- Test all routes thoroughly using Postman and take screenshots as proof of functionality
Acceptance Criteria
Resources
- See
projects.js or other entity routes for structure reference.
- Postman for testing requests.
If you have any questions, feel free to reach out to Yousef on Slack!
Description
Create the CRUD (Create, Read, Update, Delete) API routes for the
userstable.Users table
POST /users- create a userGET /users- get all usersGET /users/{id}- get a single userPUT /users/{id}- update a single userDELETE /users/{id}- delete a single userRecommended Steps
userstable schemausers.jsfile in/server/routesuserstable (Create, Read, Update, Delete)Acceptance Criteria
Resources
projects.jsor other entity routes for structure reference.If you have any questions, feel free to reach out to Yousef on Slack!