Class AthleteWebController

java.lang.Object
com.endurancetrio.app.competitor.web.AthleteWebController

@EnduranceTrioWebController public class AthleteWebController extends Object
The AthleteWebController handles Thymeleaf views for the athletes section.
  • Constructor Details

  • Method Details

    • getAthletes

      @GetMapping("/{language:en|pt}/athletes") public String getAthletes(@PathVariable String language, @RequestParam(defaultValue="0") int page, jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model)
      Returns the athletes listing page with paginated athletes ordered by known name.
      Parameters:
      language - the language path variable (en or pt)
      page - the page number from the query string (default 0, clamped to non-negative)
      request - the current HTTP request for building page metadata
      model - the model to populate with view attributes
      Returns:
      the athletes view name
    • getAthleteById

      @GetMapping("/{language:en|pt}/athletes/{id}") public String getAthleteById(@PathVariable String language, @PathVariable Long id, @RequestParam(defaultValue="0") int page, jakarta.servlet.http.HttpServletRequest request, org.springframework.ui.Model model)
      Returns the athlete profile page for a specific athlete, including their races.
      Parameters:
      language - the language path variable (en or pt)
      id - the ID of the athlete
      page - the page number from the query string (default 0, clamped to non-negative)
      request - the current HTTP request for building page metadata
      model - the model to populate with view attributes
      Returns:
      the athlete profile view name