Class SubmissionController


  • @RestController
    @RequestMapping("/version/v1")
    @Validated
    public class SubmissionController
    extends Object
    • Field Detail

      • SUBMISSION_ROUTE

        public static final String SUBMISSION_ROUTE
        The route to the submission endpoint (version agnostic).
        See Also:
        Constant Field Values
    • Method Detail

      • submitDiagnosisKey

        @PostMapping(value="/diagnosis-keys",
                     headers="cwa-fake=0")
        public org.springframework.web.context.request.async.DeferredResult<org.springframework.http.ResponseEntity<Void>> submitDiagnosisKey​(@ValidSubmissionPayload @RequestBody
                                                                                                                                              SubmissionPayload exposureKeys,
                                                                                                                                              @RequestHeader("cwa-authorization")
                                                                                                                                              String tan)
        Handles diagnosis key submission requests.
        Parameters:
        exposureKeys - The unmarshalled protocol buffers submission payload.
        tan - A tan for diagnosis verification.
        Returns:
        An empty response body.