-
Notifications
You must be signed in to change notification settings - Fork 1
RESTful services documentation
Yichen Wu edited this page Apr 13, 2021
·
33 revisions
See the http status codes there: https://www.restapitutorial.com/httpstatuscodes.html
Click the Endpoints to see the Integration Testing related
Request type |
Endpoints | Method Name | Method Description | Inputs | Outputs |
GET | /appointment/id /appointment/id/ |
getAppointment | get an appointment by ID |
|
AppointmentDto
|
GET | /appointments/person/email /appointments/person/email/ |
getAppointmentHistory | get all appointments for a given customer |
|
List<AppointmentDto>
|
PUT | /appointment/id /appointment/id/ |
editAppointment | edit a given appointment |
|
ResponseEntity<?>
|
DELETE | /appointment/id /appointment/id/ |
deleteAppointment | delete a gievn appointment |
|
ResponseEntity<?>
|
POST | /appointment /appointment/ |
createAppointment | create a new appointment in the datebase |
|
ResponseEntity<?>
|
POST | /appointmentNoShow/id /appointmentNoShow/id/ |
enterNoShow | declare no show for a given appointment |
|
ResponseEntity<?>
|
Request type | Endpoints | Method Name | Method Description | Inputs | Outputs |
GET | /business/id /business/id/ |
getBusiness | get the requested business |
|
ResponseEntity<?>
|
POST | /business /business/ |
createBusiness | create new business in the database |
|
ResponseEntity<?>
|
PUT | /business/id /business/id/ |
updateBusiness | updates business information |
|
ResponseEntity<?>
|
DELETE | /business/id /business/id/ |
deleteBusiness | deletes the business from the system |
|
ResponseEntity<?>
|
Request type |
Endpoints | Method Name | Method Description | Inputs | Outputs |
GET | /person/customer/email /person/customer/email/ |
getCustomer | get a customer by email |
|
ResponseEntity<?>
|
GET | /person/technician/email /person/technician/email/ |
getTechnician | get a technician by email |
|
ResponseEntity<?>
|
GET | /person/administrator/email /person/administrator/email/ |
getAdministrator | get an administrator by email |
|
ResponseEntity<?>
|
PUT | /person/customer/email /person/customer/email/ |
updateCustomer | edit the information of a customer |
|
ResponseEntity<?>
|
PUT | /person/technician/email /person/technician/email/ |
updateTechnician | edit the information of a technician |
|
ResponseEntity<?>
|
PUT | /person/administrator/email /person/administrator/email/ |
updateAdministrator | edit the information of an administrator |
|
ResponseEntity<?>
|
DELETE | /person/customer/email /person/customer/email/ |
deleteCustomer | delete the account for a given customer | @PathVariable String email: the email of the customer account to be deleted | ResponseEntity<?>
|
DELETE | /person/technician/email /person/technician/email/ |
deleteTechnician | delete the account for a given technician | @PathVariable String email: the email of the technician account to be deleted | ResponseEntity<?>
|
DELETE | /person/administrator/email /person/administrator/email/ |
deleteAdministrator | delete the account for a given administrator | @PathVariable String email: the email of the admnistrator account to be deleted | ResponseEntity<?>
|
POST | /person/customer/register /person/customer/register/ |
createCustomer | create a new customer account in the database | @RequestBody CustomerDto customerDto:the customer account that want to be created | ResponseEntity<?>
|
POST | /person/customer/login /person/customer/login/ |
loginCustomer | login to an existing customer account | @RequestBody CustomerDto customerDto:the customer account that want to be logged in | ResponseEntity<?>
|
POST | /person/technician/register /person/technician/register/ |
createTechnician | create a new technician account in the database | @RequestBody TechnicianDto technicianDto:the technician account that want to be created | ResponseEntity<?>
|
POST | /person/technician/login person/technician/login/ |
loginTechnician | login to an existing technician account | @RequestBody TechnicianDto technicianDto:the technician account that want to be logged in | ResponseEntity<?>
|
POST | /person/administrator/register /person/administrator/register/ |
createAdministrator | create a new administrator account in the database | @RequestBody AdministratorDto administratorDto:the administrator account that want to be created | ResponseEntity<?>
|
POST | /person/administrator/login /person/administrator/login/ |
loginAdministrator | login to an existing administrator account | @RequestBody AdministratorDto administratorDto:the administrator account that want to be logged in | ResponseEntity<?>
|
Request type |
Endpoints | Method Name | Method Description | Inputs | Outputs |
GET | /bookableService/name /bookableService/name/ |
getBookableService | get the requested bookable service |
|
BookableServiceDto
|
GET | /bookableServices /bookableServices/ |
getAllBookableServices | get all bookable services in the repair shop | - | List<BookableServiceDto>
|
POST | /bookableService /bookableService/ |
createBookableService | create new bookable service in the database |
|
ResponseEntity<?>
|
PUT/td> | /bookableService/name /bookableService/name/ |
editBookableService | edit a bookable service |
|
ResponseEntity<?>
|
DELETE | /bookableService/name /bookableService/name/ |
deleteBookableService | deletes the bookable service from the system |
|
ResponseEntity<?>
|
Request type |
Endpoints | Method Name | Method Description | Inputs | Outputs |
GET | /timeslotAvailable /timeslotAvailable/ |
getAvailableTimeSlots | get the open timeslots | - | List<TimeSlot?>
|
POST | /timeSlot /timeSlot/ |
createTimeSlot | create new timeslot in the database |
|
ResponseEntity<?>
|
DELETE | /timeSlot/id /timeSlot/id/ |
deleteTimeSlot | deletes the timeslot from the system |
|
ResponseEntity<?>
|