Package org.cswteams.ms3.rest
Class MedicalServicesRestEndpoint
java.lang.Object
org.cswteams.ms3.rest.MedicalServicesRestEndpoint
@RestController
@RequestMapping("/medical-services/")
public class MedicalServicesRestEndpoint
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?> creaServizio(MedicalServiceCreationDTO service) org.springframework.http.ResponseEntity<?> deleteService(Long serviceId) org.springframework.http.ResponseEntity<?> org.springframework.http.ResponseEntity<?> org.springframework.http.ResponseEntity<?> leggiServizio(String serviceName) org.springframework.http.ResponseEntity<?> updateService(MedicalServiceDTO service)
-
Constructor Details
-
MedicalServicesRestEndpoint
public MedicalServicesRestEndpoint()
-
-
Method Details
-
getAllMedicalServices
@RequestMapping(method=GET) public org.springframework.http.ResponseEntity<?> getAllMedicalServices() -
leggiServizio
@RequestMapping(method=GET, path="name/{serviceName}") public org.springframework.http.ResponseEntity<?> leggiServizio(@PathVariable String serviceName) -
getAvailableTaskTypes
@RequestMapping(method=GET, path="available-task-types") public org.springframework.http.ResponseEntity<?> getAvailableTaskTypes() -
creaServizio
@RequestMapping(method=POST, path="") public org.springframework.http.ResponseEntity<?> creaServizio(@RequestBody(required=true) MedicalServiceCreationDTO service) -
updateService
@RequestMapping(method=POST, path="update") public org.springframework.http.ResponseEntity<?> updateService(@RequestBody(required=true) MedicalServiceDTO service) -
deleteService
@RequestMapping(method=POST, path="delete") public org.springframework.http.ResponseEntity<?> deleteService(@RequestBody(required=true) Long serviceId)
-