Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.

jtracks/store-stock-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Store Stock Management API

A FastAPI-based service for managing store product inventory.

Endpoints

  • GET /
    Welcome message and docs link.

  • POST /products/
    Create a new product. Requires API key.

  • GET /products/
    List products (paginated). Requires API key.

  • GET /products/{product_id}
    Get product details. Requires API key.

  • PATCH /products/{product_id}
    Update product fields. Requires API key.

  • DELETE /products/{product_id}
    Delete a product. Requires API key.

  • POST /products/{product_id}/increment
    Increase product stock. Requires API key.

  • POST /products/{product_id}/decrement
    Decrease product stock. Requires API key.

Run Instructions

With Docker Compose

docker-compose up --build

With Scripts

Install dependencies:

poetry install

Run migrations:

bin/prepare.sh

Start the app:

bin/run.sh

Run tests:

bin/test.sh

Docs

  • Import ssm-postman-collection.json for Postman collection with example requests
  • Motivation for frameworks in motivation.md

API Docs

Visit http://localhost:8000/docs for interactive Swagger UI.

About

Simple fastapi based API for store stock management

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors