Class CallbackController
- java.lang.Object
-
- app.coronawarn.server.services.callback.controller.CallbackController
-
@RestController @RequestMapping("/version/v1") @Validated public class CallbackController extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CALLBACK_ROUTE
The route to the callback endpoint (version agnostic).
-
Constructor Summary
Constructors Constructor Description CallbackController(FederationBatchInfoService federationBatchInfoService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<Void>
handleCallback(String batchTag, @NotNull LocalDate date)
Handles Callback GET requests from Federation Gateway.
-
-
-
Field Detail
-
CALLBACK_ROUTE
public static final String CALLBACK_ROUTE
The route to the callback endpoint (version agnostic).- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CallbackController
public CallbackController(FederationBatchInfoService federationBatchInfoService)
-
-
Method Detail
-
handleCallback
@GetMapping(value="/callback", params="batchTag!=") public org.springframework.http.ResponseEntity<Void> handleCallback(@RequestParam String batchTag, @NotNull @DateTimeFormat(iso=DATE) @RequestParam @NotNull LocalDate date)
Handles Callback GET requests from Federation Gateway.- Parameters:
batchTag
- The batchTag for the latest batch.date
- The date of the batch.- Returns:
- An empty response body.
-
-