use of uk.nhs.adaptors.scr.models.RequestData in project summary-care-record-api by NHSDigital.
the class AcsController method setPermission.
@PostMapping(path = "/$setPermission", consumes = { APPLICATION_FHIR_JSON_VALUE }, produces = { APPLICATION_FHIR_JSON_VALUE })
@ResponseStatus(CREATED)
public void setPermission(@RequestBody @AcsRequest String parameters, @RequestHeader(NHSD_ASID) @NotNull String nhsdAsid, @RequestHeader(CLIENT_IP) @NotNull String clientIp, @RequestHeader(NHSD_SESSION_URID) @NotNull String nhsdSessionUrid, @RequestHeader(AUTHORIZATION) @NotNull String authorization) {
LOGGER.info("Received ACS Set Permission request");
RequestData requestData = new RequestData().setBody(parameters).setClientIp(clientIp).setNhsdAsid(nhsdAsid).setNhsdSessionUrid(nhsdSessionUrid).setAuthorization(authorization);
acsService.setPermission(requestData);
}
Aggregations