@Lazy @Controller @RequestMapping(value="/api/v1/patient") public class PatientController extends Object
| Constructor and Description |
|---|
PatientController() |
@RequestMapping(method=POST) @ResponseBody public org.springframework.http.ResponseEntity<org.molgenis.controller.PatientController.PatientResponse> createPatient(@RequestBody org.molgenis.controller.PatientController.PatientRequest patientRequest) throws DatabaseException
DatabaseException@RequestMapping(method=POST,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.PatientController.PatientResponse> createPatientFromForm(@ModelAttribute
org.molgenis.controller.PatientController.PatientRequest patientRequest)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=GET)
@ResponseBody
public org.molgenis.controller.PatientController.PatientResponse retrievePatient(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public org.molgenis.controller.PatientController.PatientResponse retrievePatientJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@InitBinder public void binder(org.springframework.web.bind.WebDataBinder binder)
@RequestMapping(value="/{id}/mother",
method=GET)
public String retrievePatientXrefMother(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}/mother",
method=GET,
params="format=json",
produces="application/json")
public String retrievePatientXrefMotherJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}/father",
method=GET)
public String retrievePatientXrefFather(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}/father",
method=GET,
params="format=json",
produces="application/json")
public String retrievePatientXrefFatherJson(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}/allele1",
method=GET)
public String retrievePatientXrefAllele1(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}/allele1",
method=GET,
params="format=json",
produces="application/json")
public String retrievePatientXrefAllele1Json(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}/allele2",
method=GET)
public String retrievePatientXrefAllele2(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}/allele2",
method=GET,
params="format=json",
produces="application/json")
public String retrievePatientXrefAllele2Json(@PathVariable
Integer id,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=PUT)
@ResponseStatus(value=OK)
public void updatePatient(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.PatientController.PatientRequest patientRequest)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=PUT,
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseBody
public org.springframework.http.ResponseEntity<org.molgenis.controller.PatientController.PatientResponse> updatePatientFromForm(@PathVariable
Integer id,
@PathVariable
String _method,
@ModelAttribute
org.molgenis.controller.PatientController.PatientRequest patientRequest)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT")
@ResponseStatus(value=NO_CONTENT)
public void updatePatientPost(@PathVariable
Integer id,
@RequestBody
org.molgenis.controller.PatientController.PatientRequest patientRequest)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=POST,
params="_method=PUT",
headers="Content-Type=application/x-www-form-urlencoded")
@ResponseStatus(value=NO_CONTENT)
public void updatePatientFromFormPost(@PathVariable
Integer id,
@ModelAttribute
org.molgenis.controller.PatientController.PatientRequest patientRequest)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=DELETE)
@ResponseStatus(value=NO_CONTENT)
public void deletePatient(@PathVariable
Integer id)
throws DatabaseException
DatabaseException@RequestMapping(value="/{id}",
method=POST,
params="_method=DELETE")
@ResponseStatus(value=NO_CONTENT)
public void deletePatientPost(@PathVariable
Integer id)
throws DatabaseException
DatabaseException@RequestMapping(method=GET) @ResponseBody public EntityCollectionResponse<org.molgenis.controller.PatientController.PatientResponse> retrievePatientCollection(EntityCollectionRequest patientCollectionRequest, @RequestParam(value="expand",required=false) String... expandFields) throws DatabaseException
DatabaseException@RequestMapping(method=GET,
params="format=json",
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.PatientController.PatientResponse> retrievePatientCollectionJson(EntityCollectionRequest patientCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(method=POST,
params="_method=GET")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.PatientController.PatientResponse> retrievePatientCollectionPost(@RequestBody
EntityCollectionRequest patientCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@RequestMapping(method=POST,
params={"_method=GET","format=json"},
produces="application/json")
@ResponseBody
public EntityCollectionResponse<org.molgenis.controller.PatientController.PatientResponse> retrievePatientCollectionJsonPost(@RequestBody
EntityCollectionRequest patientCollectionRequest,
@RequestParam(value="expand",required=false)
String... expandFields)
throws DatabaseException
DatabaseException@ExceptionHandler(value=org.molgenis.framework.db.EntityNotFoundException.class) @ResponseStatus(value=NOT_FOUND) @ResponseBody public ErrorMessageResponse handleEntityNotFoundException(EntityNotFoundException e)
@ExceptionHandler(value=org.molgenis.framework.db.DatabaseException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public ErrorMessageResponse handleDatabaseException(DatabaseException e)
@ExceptionHandler(value=org.molgenis.framework.db.DatabaseAccessException.class) @ResponseStatus(value=UNAUTHORIZED) @ResponseBody public ErrorMessageResponse handleDatabaseAccessException(DatabaseAccessException e)
@ExceptionHandler(value=java.lang.RuntimeException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public ErrorMessageResponse handleRuntimeException(RuntimeException e)
Copyright © 2013. All Rights Reserved.