Found in release 1 by Redouan Sellami.
Problem:
If you create an appointment that already exactly exist, than its possible to create the same appointment
Expected behavior:
Error that says ''Appointment already exist'' with error code:422
Steps to replicate:
Open the program Postman.
you need to send a request to this link: http://127.0.0.1:8000/appointments.
*with as body:
{
"driving_instructor": 30,
"start_time": "2019-10-17 05:00:00",
"end_time": "2019-10-17 06:00:00"
}
Authorization: Bearer Token: (your token).
It will create the appointment instead of you receiving an error that the appointment already exist
Found in release 1 by Redouan Sellami. Problem: If you create an appointment that already exactly exist, than its possible to create the same appointment Expected behavior: Error that says ''Appointment already exist'' with error code:422
Steps to replicate: Open the program Postman. you need to send a request to this link: http://127.0.0.1:8000/appointments. *with as body: { "driving_instructor": 30, "start_time": "2019-10-17 05:00:00", "end_time": "2019-10-17 06:00:00" }
Authorization: Bearer Token: (your token). It will create the appointment instead of you receiving an error that the appointment already exist