diff --git a/.agents/skills/backend/SKILL.md b/.agents/skills/backend/SKILL.md index 1619609..0b4b107 100644 --- a/.agents/skills/backend/SKILL.md +++ b/.agents/skills/backend/SKILL.md @@ -131,7 +131,7 @@ Strip supplierName?: str from T11 (resolve via entityId in cached supplier list) # Dash API Routes Overview (All) -Overview of all 261 API endpoints across all modules. +Overview of all 263 API endpoints across all modules. ### Notation @@ -214,6 +214,9 @@ _none_ #### Export articles as ZIP — `GET /article/export.zip` - Params: `query: categoryId?: int` - Returns: `200 zip` +#### Query company-wide article history — `GET /article/history` +- Params: `query: offset?: int, limit?: int, search?: str, seekMonths?: int` +- Returns: `200 { history: { id: int, date: str, sku: str, historytext: str, name?: str|null }[], total: int, unfilteredTotal: int, offset: int, limit: int }` #### Delete article by SKU — `DELETE /article/{sku}` - Params: `sku: str, query: cascade?: bool` - Returns: `204 void` @@ -659,6 +662,9 @@ _none_ #### Query ledger by manifest article ID or SKU — `GET /ledger` - Params: `query: manifestarticle_id?: int, sku?: str, transaction_type?: str` - Returns: `200 { ledger: T15[] }` +#### Query company-wide ledger history — `GET /ledger/history` +- Params: `query: offset?: int, limit?: int, search?: str, seekMonths?: int` +- Returns: `200 { ledger: { id: int, date: str, transaction_type: str, transaction_text: str, sku?: str|null, name?: str|null, amount?: num }[], total: int, unfilteredTotal: int, offset: int, limit: int }` #### Query ledger by manifest article ID — `GET /ledger/manifestarticle/{manifestarticleId}` - Params: `manifestarticleId: int, query: transaction_type?: str` - Returns: `200 { ledger: T15[] }`