Skip to content

Latest commit

 

History

History

service-customers

Sample requests

  • Create customer

curl -X POST --header "Content-Type: application/json" -d '{
  "name": "Jane Doe",
  "credit_limit": 250
}' http://localhost:9701/customers
  • Get customer

curl http://localhost:9701/customer/15883bbb-dbf9-4ea0-afec-b2fab1a0ab2f

Development

  • 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