Skip to content

Appointment testing POSTMAN

tamarazard edited this page Mar 18, 2021 · 1 revision

First we make two appointments for TestCustomer.

Make App 1 Cust1 Make App 2 Cust1

We get all the appointments of TestCustomer (There are 2).

Appointment of Cust1

We make one appointment for TestCustomer2.

Make App 1 Cust2

We get all the appointments of TestCustomer2 (There is one).

Appointments of Cust2

We get all the available appointments in the system (There are 3, two for TestCustomer and one for TestCustomer2).

AllAppointments

We get the available and unavailable time slots on the day of the three appointments. The unavailable time slots are the time slots of the appointments. The available time slots are the rest of the day between the operating hours which are set from (07:00 till 20:00).

unavailableTimeSlots availableTimeSlots

We then update the appointment that starts at 12:00 on 2021-04-29 with the service cservice1 for TestCustomer. We update the date to 2021-03-25

UpdateDate

We then update the time of TestCustomer's second appointment from 14:00 to 13:00

UpdateTime

We then update the updated appointment that starts now at 13:00. We change the service from cservice1 to cservice2.

UpdateService

We cancel the appointment of TestCustomer2

cancelAPp

We check the appointments of TestCustomer2 and he has none.

canceledApp

Clone this wiki locally