CS7 Capstone Project Refactoring of CS7 Labs Projec
Required input
{
"email": "[email protected]",
"password": "1234567"
}
Response Body
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9....",
"user_id": "5cb62ecc4581db3438119a67"
}
Response Body
[
{
"appointments": [],
"feedback": [],
"_id": "5cb62ecc4581db3438119a67",
"name": "Alex",
"phone": "1111111111",
"email": "[email protected]",
"password": "123456",
"date": "2019-04-16T22:03:31.567Z"
},
{
...
}
]
create a new user
get a specific user
update a specific user
get a specific user PUT - update a specific user
testing route to get a list of all stylists in database
create a new stylist
get a stylist by their id PUT - updates Stylist by Stylist ID DELETE - deletes Stylist by Stylist ID
create a new Appointment
list all appointments for specific user
lists all appointments for a Stylist
PUT - updates appointment by appointment ID DELETE - deletes appointment by appointment ID
get all feedback in database
create new feedback
Gets an array of all the Feedback a User has submitted
Gets an array of all the Feedback a Stylist has received
PUT - Updates previously submitted feedback via Feedback ID DELETE - Deletes Feedback by Feedback ID
get all Services in database
create new Service
Gets a specific Service
PUT - Updates a Service via Service ID DELETE - Deletes a Service via Service ID