Skip to content

Backend simple End Points #1

@Lil-Code30

Description

@Lil-Code30

1. Products API

GET /api/products                  # Get all products
GET /api/products/:id             # Get one product
POST /api/products                # Create a product
POST /api/products                # Update product info
PUT /api/products/:id             # Update product info
DELETE /api/products/:id       # Delete product

2. Stock Management (In / Out)

POST /api/stock/in        # Stock IN (Add inventory)
POST /api/stock/out     # Stock OUT (Sell / Remove inventory)
GET /api/stock              # Get stock history

# filters
GET /api/stock?product_id=1
GET /api/stock?type=OUT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions