Search in sources :

Example 1 with RequestData

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);
}
Also used : RequestData(uk.nhs.adaptors.scr.models.RequestData) PostMapping(org.springframework.web.bind.annotation.PostMapping) ResponseStatus(org.springframework.web.bind.annotation.ResponseStatus)

Aggregations

PostMapping (org.springframework.web.bind.annotation.PostMapping)1 ResponseStatus (org.springframework.web.bind.annotation.ResponseStatus)1 RequestData (uk.nhs.adaptors.scr.models.RequestData)1