Item CRUD: full lifecycle from FOUND to SOLD #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Story
As a user, I want to create, read, update, and delete inventory items so I can track every item through its resale lifecycle.
Lifecycle
Acceptance criteria
POST /itemscreates an item (onlytitlerequired – fast entry mode)GET /itemslists items with pagination + ?status= and ?search= filtersGET /items/{id}returns one itemPATCH /items/{id}updates any field, e.g. status flip or adding a listing URLDELETE /items/{id}is admin-only (customers use ARCHIVE instead)purchase_price,listing_price,sale_pricetracked for profit calculationNotes
Ported from v1 issue #2. Backend stub is already in place (
app/routers/items.py).