The api arquitecture is based on the good practices for Fast-API by @tialongo, for more information check https://fastapi.tiangolo.com
All the models should have the same acces methods, you should check http://localhost:8000/docs for testings all the methods
GET /items| Parameter | Type | Description |
|---|---|---|
token |
string |
Required. Your API key |
GET /api/items/${id}| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of item to fetch |
POST /items/| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of item to fetch |
PUT /items/${id}| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of item to fetch |
DELETE /items/${id}| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Id of item to fetch |
Clone the project
git clone ${project_link}Go to the project directory
cd ${project_name}Create a virutal environment
virutalenv venvActivate the virutalenv
. ./venv/bin/activateInstall dependencies
python3 -m pip install -r requirements.txtUpdate the db
alembic revision --autogenerate -m "made some changes"
alembic upgrade head Start the server
cd app
python3 main.pyStart the celery server
cd app
celery -A celery_app worker -B -l info To deploy this project run
./install.shThe project is licensed only for the use by the team.