Sport-activities-features API is a Python library for using sport-activities-features as an FastAPI based web API.
Please view Swagger docs to see how to use this API.
- Download project
- Install dependencies with Poetry
poetry install
- Navigate to project folder and run server in terminal.
uvicorn main:app --reload
- Run server (main.py)
- Navigate to Swagger docs to see how to use.
- Use the official image from DockerHub repository alenrajsp/sport-activities-features-api
- Run from terminal with
docker run -p <PORT>:80 alenrajsp/sport-activities-features-api
. The <PORT> variable is the port from which you want to access the container.
Folder / file | Description |
---|---|
/helpers | Folder for helper classes (JSON transformations, folder navigation, temp file management) |
/models | Request / Response FastAPI models |
/routers | Individual routes of FastAPI and functionalities |
/temp | Temporary files that, get generated when recieving requests and deleted afterwards |