Class ResearchStudyParticipantController
java.lang.Object
org.diabetestechnology.drh.service.http.pg.ux.ResearchStudyParticipantController
-
Constructor Summary
ConstructorsConstructorDescriptionResearchStudyParticipantController
(ParticipantService participantService, ResearchStudyService researchStudyService) -
Method Summary
Modifier and TypeMethodDescriptioncheckIfParticipantDisplayIdExists
(String studyId, String participantDisplayId) getParticipantDetails
(String participantId) saveParticipantData
(@Valid ParticipantDataRequest request) updateParticipantData
(String participantId, @Valid ParticipantDataRequest request) updateParticipantDataInline
(String participantId, com.fasterxml.jackson.databind.JsonNode jsonInput)
-
Constructor Details
-
ResearchStudyParticipantController
public ResearchStudyParticipantController(ParticipantService participantService, ResearchStudyService researchStudyService)
-
-
Method Details
-
saveParticipantData
@PostMapping("/participant") @ResponseBody public Response saveParticipantData(@Valid @RequestBody @Valid ParticipantDataRequest request) -
updateParticipantDataInline
-
getParticipantDetails
-
checkIfParticipantDisplayIdExists
-
updateParticipantData
@PutMapping("/participant/{participantId}/update") @ResponseBody public Response updateParticipantData(@PathVariable String participantId, @Valid @RequestBody @Valid ParticipantDataRequest request) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-