Challenge executed in Fastapi
pip install poetry
poetry install
Open file alembic.ini and add this line
sqlalchemy.url = postgresql://tulio:tulio@localhost/qulture
Run this command
alembic upgrade head
uvicorn challenge.main:app --host 0.0.0.0 --port 8000
GET /tags
: Get list of tagsGET /tags/:id
: Get a single tagPOST /tags
: Create tagPUT /tags
: Update list of tagDELETE /tags
: Delete a tag
GET /segments
: Get list of segmentsGET /segments/:id
: Get a single segmentPOST /segments
: Create a segmentDELETE /segments
: Delete a segment
GET /users
: Get list of usersGET /users/:id
: Get a single userPOST /users
: Create a userPUT /users
: Update a userDELETE /users
: Delete a user
pytest
At the endpoint of / users has an option to pass a filter on the search. This filter must be sent in the same format as ansi sql.
Ex: (first_name = 'test' and last_name = 'test 2') or (email = '[email protected]')
The project is running in aws in this address http://18.191.237.232/docs