Interface MatchesApi
- All Known Implementing Classes:
MatchesController
@Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen",
date="2025-05-03T17:58:20.830298669Z[Etc/UTC]")
@Validated
public interface MatchesApi
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void>
cancelMatch
(@Pattern(regexp="^[A-Z]{10}$") String code) org.springframework.http.ResponseEntity<Void>
createMatch
(@Valid MatchForm body) findCarsForMatch
(@Pattern(regexp="^[A-Z]{10}$") String code) findMatches
(@Valid LocalDate startDate, @Valid LocalDate endDate, @Valid SportCode sport, @Valid MatchStatus status) Optional<com.fasterxml.jackson.databind.ObjectMapper>
Optional<jakarta.servlet.http.HttpServletRequest>
org.springframework.http.ResponseEntity<Match>
loadMatchByCode
(@Pattern(regexp="^[A-Z]{10}$") String code) org.springframework.http.ResponseEntity<List<Registration>>
loadMatchRegistrations
(@Pattern(regexp="^[A-Z]{10}$") String code) org.springframework.http.ResponseEntity<Void>
registerPlayerToMatch
(@Pattern(regexp="^[A-Z]{10}$") String code, @Valid RegistrationForm body) org.springframework.http.ResponseEntity<Void>
unregisterPlayerFromMatch
(@Pattern(regexp="^[A-Z]{10}$") String code, @Min(1L) Integer pid) org.springframework.http.ResponseEntity<Void>
updateCarForRegistration
(@Pattern(regexp="^[A-Z]{10}$") String code, @Min(1L) Integer pid, @Valid CarConfirmation body)
-
Field Details
-
log
static final org.slf4j.Logger log
-
-
Method Details
-
getObjectMapper
Optional<com.fasterxml.jackson.databind.ObjectMapper> getObjectMapper() -
getRequest
Optional<jakarta.servlet.http.HttpServletRequest> getRequest() -
cancelMatch
-
createMatch
-
findCarsForMatch
-
findMatches
@RequestMapping(value="/matches", produces="application/json", method=GET) org.springframework.http.ResponseEntity<List<Match>> findMatches(@Valid @RequestParam(value="start_date",required=false) @Valid LocalDate startDate, @Valid @RequestParam(value="end_date",required=false) @Valid LocalDate endDate, @Valid @RequestParam(value="sport",required=false) @Valid SportCode sport, @Valid @RequestParam(value="status",required=false) @Valid MatchStatus status) -
loadMatchByCode
-
loadMatchRegistrations
@RequestMapping(value="/matches/{code}/registrations", produces="application/json", method=GET) org.springframework.http.ResponseEntity<List<Registration>> loadMatchRegistrations(@Pattern(regexp="^[A-Z]{10}$") @PathVariable("code") @Pattern(regexp="^[A-Z]{10}$") String code) -
registerPlayerToMatch
@RequestMapping(value="/matches/{code}/registrations", produces="application/json", consumes="application/json", method=POST) org.springframework.http.ResponseEntity<Void> registerPlayerToMatch(@Pattern(regexp="^[A-Z]{10}$") @PathVariable("code") @Pattern(regexp="^[A-Z]{10}$") String code, @Valid @RequestBody @Valid RegistrationForm body) -
unregisterPlayerFromMatch
@RequestMapping(value="/matches/{code}/registrations/{pid}", produces="application/json", method=DELETE) org.springframework.http.ResponseEntity<Void> unregisterPlayerFromMatch(@Pattern(regexp="^[A-Z]{10}$") @PathVariable("code") @Pattern(regexp="^[A-Z]{10}$") String code, @Min(1L) @PathVariable("pid") @Min(1L) Integer pid) -
updateCarForRegistration
@RequestMapping(value="/matches/{code}/registrations/{pid}", produces="application/json", consumes="application/json", method=PATCH) org.springframework.http.ResponseEntity<Void> updateCarForRegistration(@Pattern(regexp="^[A-Z]{10}$") @PathVariable("code") @Pattern(regexp="^[A-Z]{10}$") String code, @Min(1L) @PathVariable("pid") @Min(1L) Integer pid, @Valid @RequestBody @Valid CarConfirmation body)
-