Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/football data integration #2

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

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