Interface MatchesApi

All Known Implementing Classes:
MatchesController

@Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2025-05-03T18:05:27.532758501Z[Etc/UTC]") @Validated public interface MatchesApi
  • 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

      @RequestMapping(value="/matches/{code}", produces="application/json", method=DELETE) org.springframework.http.ResponseEntity<Void> cancelMatch(@Pattern(regexp="^[A-Z]{10}$") @PathVariable("code") @Pattern(regexp="^[A-Z]{10}$") String code)
    • createMatch

      @RequestMapping(value="/matches", produces="application/json", consumes="application/json", method=POST) org.springframework.http.ResponseEntity<Void> createMatch(@Valid @RequestBody @Valid MatchForm body)
    • findCarsForMatch

      @RequestMapping(value="/matches/{code}/cars", produces="application/json", method=GET) org.springframework.http.ResponseEntity<List<Car>> findCarsForMatch(@Pattern(regexp="^[A-Z]{10}$") @PathVariable("code") @Pattern(regexp="^[A-Z]{10}$") String code)
    • 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

      @RequestMapping(value="/matches/{code}", produces="application/json", method=GET) org.springframework.http.ResponseEntity<Match> loadMatchByCode(@Pattern(regexp="^[A-Z]{10}$") @PathVariable("code") @Pattern(regexp="^[A-Z]{10}$") String code)
    • 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)