-
Clone the repository
-
Install dependencies:
pip install -r requirements.txt -
Apply migrations:
python manage.py makemigrations python manage.py migrate -
Generate Swagger UI schema:
python manage.py spectacular --file schema.yml -
to run test cases:
``` python manage.py test``
-
Run the development server: runs on localhost and port 8000 by default
python manage.py runserver
- GET /inventory_items/: List all inventory items
- POST /inventory_items/: Create a new inventory item
- GET /inventory_items/{id}/: Retrieve a specific inventory item
- PUT /inventory_items/{id}/: Update a specific inventory item
- DELETE /inventory_items/{id}/: Delete a specific inventory item
- GET /suppliers/: List all suppliers
- POST /suppliers/: Create a new supplier
- GET /suppliers/{id}/: Retrieve a specific supplier
- PUT /suppliers/{id}/: Update a specific supplier
- DELETE /suppliers/{id}/: Delete a specific supplier
- swagger-ui : /api/schema/swagger-ui/
- redoc : /api/schema/redoc
Find Here : Postman Docs