Gympoint is a RocketSeat’s back-end project that I need to do a full api, with database communication and many routes with treat. Also using middlewares, docker, postgres, debug on vscode and other things. It is being used as a study project to improve my hard skills. This challenge is part of the course conclusion.
- Session;
- Create user;
- Update user;
- Create student;
- Update student;
- Show all students;
Method | Action | Header | Body | Path |
---|---|---|---|---|
POST | session | [ ] | B1 | /sessions |
POST | create-user | [ "token" ] | B2 | /users |
PUT | update-user | [ "token" ] | B3 | /users |
POST | create-student | [ "token" ] | B4 | /students |
PUT | update-student | [ "token" ] | B5 | /students |
GET | show-students | [ "token" ] | /students |
Request body for
session
{
"email": "[email protected]",
"password": "123456"
}
Request body for
create-user
{
"name": "Alan Turing",
"email": "[email protected]",
"password": "123456"
}
Only attributes that you wanna change. Request body for
update-user
{
"name": "Alan Turing",
"email": "[email protected]",
"oldPassword": "123456",
"password": "1234567",
"confirmPassword": "1234567",
}
Request body for
create-student
{
"name": "Alan Turing",
"email": "[email protected]",
"age": 107,
"height": 1.75,
"weight": 70.00
}
Only attributes that you wanna change. Request body for
update-student
{
"name": "Alan Turing",
"email": "[email protected]",
"age": 107,
"height": 1.75,
"weight": 72.00
}