Skip to content

Conversation

@KiansGithub
Copy link

Introduces a FootballController and FootballApiService to handle football-related API functionality. Provides endpoints to fetch team details, scores, competition information, and top scorers using the football-data.org API.

  1. FootballController:

GET /api/football/teams/{id}: Retrieve details about a specific team by ID.
GET /api/football/scores: Fetch scores for a specific team within a date range (with default date handling).
GET /api/football/competitions/{code}: Fetch details of a specific competition by its code (e.g., "PL").
GET /api/football/competitions/{competitionCode}/scorers: Retrieve top scorers for a specific competition.

  1. The FootballApiService implements interaction with the football-data.org API. It handles API calls with error handling and logging and applies rate-limiting using Polly to ensure compliance with API rate limits (10 per minute for free tier).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant