- I love soccer so much and keep up with English Premier League. So I wanted to get the EPL information with public API
- Information from API will be saved or updated in Postgres Database
- Get access to EPL information that is saved in DB with REST APIs
- Users can register/login and save their Favorite Team
- Django Web Application
- Django Rest Framework
- REST API
- Authentication with JWT
- Only Admin can edit Users
PATH | HTTP Method | Outcome |
---|---|---|
GET | /users | LIST users |
GET | /users/id | READ user |
POST | /users | CREATE user |
PUT | /users/id | UPDATE user |
DELETE | /users/id | DELETE user |
GET | /profiles | LIST profiles |
GET | /profiles/id | READ profile |
GET | /teams | LIST teams |
GET | /teams/id | READ team |
GET | /players | LIST players |
GET | /players/id | READ player |
GET | /leaderboard | LIST leaderboard |
GET | /top-scorer | LIST top scorers in EPL league |
GET | /matches | LIST matches in EPL league |
GET | /matches/id | READ match by ID |
GET | /matches/matchdays/matchday | READ match by matchday |
- I was overwhelmed by the amount of data that I got back from the public API. I broke it down with searching by ID and began to route my path.
- Had trouble with Game outcomes. I found out that Null and Draw values were a thing for some games.
- Public API had lots of Json values which I wasn't aware of. Such as game being "scheduled" or "postponed". Solved it by inspecting what was not being recorded with my code and checking Json Data from public api.