- REST API for a small location management service
curl --location 'http://127.0.0.1:8000/api/1.0/areas/area_jPxrCuJsiXzGGM0m8WqrV3k5yRwIp0/shops' \
--header 'Content-Type: application/json' \
--data '{
"name": "Rimbi"
}'
curl --location 'http://127.0.0.1:8000/api/1.0/areas/area_jPxrCuJsiXzGGM0m8WqrV3k5yRwIp0/shops'
- Create Area
- List Areas
- View Area By ID
- Update Area
- Create Shop
- List Shops
- View Shop By ID
- Update Shop
Endpoints that return any list of items is paginated
Create a virtual environment for the service
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt
python manage.py makemigrations && python manage.py migrate
python manage.py runserver 8000
Use the docker-compose file to build the image
docker-compose up -d
python manage.py test