#About task: Asnyc non-blocking API with tech: FastApi/SqlAlchemy/SqlLite + Docker
Spin up the containers:
docker-compose up -d --build
Open your browser to http://localhost:8080 to view the app
Add statistic:
curl --location --request POST 'http://localhost:8080/api/v1/statistic' \
--header 'Content-Type: application/json' \
--data-raw '{"date": "2018-11-2", "views":123, "cost":32, "clicks":3456}'
Get statistic:
curl --location --request GET 'http://localhost:8080/api/v1/statistic?sort_type=desc'
Delete statistic:
curl --location --request DELETE 'http://localhost:8080/api/v1/statistic'
More docs in Swagger:
http://localhost:8080/docs