POST localhost:3000/api/appointment/
{
"Name": "Gaël",
"last_name": "Duvinage",
"Email": "gduvinage@gmail.com",
"Date": "2022-05-22T08:15:00+01:00",
"vcid": 2,
}
return the appointment + the link that we can send by email to the user
GET localhost:3000/api/appointment/2/2022-05-21T00:00 Instead of return a looooot of availables slots, return only taken slots over 5 days
GET localhost:3000/api/token/:token Check if token is still avaible, then valid the appoitnement related to if not, delete the token and the appointment
GET /api/admin/appointment --> secured route Need header: Authorization with token and UserName: the email or the username of the admin
return daily list of appointments of the user's center
GET /api/vaccination-center return the list of vaccination centers
POST /api/user/signup
{
"username": "Gael",
"email": "gduvinage@gmail.com",
"password": "123456",
"vcid": 2,
}
POST /api/user/signin
{ "email": "gduvinage@gmail.com", "password": "123456" }
return the bearer token for the secured route