Skip to content

wisdompython/Simple-Inventory-Management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online Store Inventory and Supplier Management API

Setup Instructions

  1. Clone the repository

  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Apply migrations:

    python manage.py makemigrations
    python manage.py migrate
    
  4. Generate Swagger UI schema:

    python manage.py spectacular --file schema.yml
    
    
  5. to run test cases:

    ``` python manage.py test``

  6. Run the development server: runs on localhost and port 8000 by default

    python manage.py runserver
    

API Endpoints

Inventory Items

  • 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

Suppliers

  • 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 docs url

  • swagger-ui : /api/schema/swagger-ui/
  • redoc : /api/schema/redoc

postman docs links

Find Here : Postman Docs

About

Inventory management system

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages