Betbright is a sports betting platform. The main functional areas are:
- Manage data about sporting events to allow users to place bets.
- Provide API to receive data from external providers and update our system with the latest data about events in real time.
- Provide access to support team to allow the to see the most recent data for each event and to query data.
For this API were chosen as stack:
- Flask
- Flask Restful
- MongoDB
- Pymongo
- Marshmallow
- Flasgger
- Docker
First of all clone this project and access it's root folder
To install and run the api just execute the following command
docker-compose up --build
And access
http://localhost
The API Routes:
- POST '/api/v1/event'
- GET '/api/v1/events'
- POST '/api/v1/odds'
- GET '/api/v1/match/<event_id>'
- GET '/api/v1/match/' (The Querystring parameters can be use: 'name', 'sport', 'ordering')
You could verify and test all the routes by accessing the API Documentation
http://localhost/apidocs
Example of a Event POST: