-
Create order
curl -X POST --header "Content-Type: application/json" -d '{
"customer_id": "97c05e79-5902-451f-b96e-f06c8fc3ed68",
"order_total": 100
}' http://localhost:9702/orders
-
Get order
curl http://localhost:9702/order/a5ecbfba-32cd-4c94-bfcf-f6a4a8f8a91c
-
Cancel order
curl -X POST http://localhost:9702/order/a5ecbfba-32cd-4c94-bfcf-f6a4a8f8a91c/cancel
-
Install dev dependencies with Poetry
poetry install
poetry shell
-
Run tests
pytest
poetry run test-ci
-
Format and lint code
poetry run format
poetry run lint
-
Build package release
poetry build