feat: add missing item endpoints (search, export, import, archive, by-uuid) #5

Closed
opened 2026-02-16 15:54:48 +00:00 by forbes · 0 comments
Owner

Summary

The server provides 12 item endpoints but the client only implements 4 (get_item, list_items, create_item, update_item).

Missing Methods

Server Endpoint Proposed Method
GET /api/items/search search_items(query, scope) -- fuzzy search with scope toggle
GET /api/items/by-uuid/{uuid} get_item_by_uuid(uuid)
GET /api/items/export.csv export_items_csv()
GET /api/items/template.csv get_items_csv_template()
GET /api/items/export.ods export_items_ods()
GET /api/items/template.ods get_items_ods_template()
POST /api/items/import import_items_csv(csv_bytes, dry_run)
POST /api/items/import.ods import_items_ods(ods_bytes)
DELETE /api/items/{pn} delete_item(part_number) (archive)

Priority

  • search_items and get_item_by_uuid are high priority (used by silo-mod for item lookup)
  • delete_item is high priority (basic CRUD completeness)
  • Import/export methods are medium priority (used by silo-calc)

References

  • SPECIFICATION.md Section 11.1 (Item endpoints)
## Summary The server provides 12 item endpoints but the client only implements 4 (`get_item`, `list_items`, `create_item`, `update_item`). ## Missing Methods | Server Endpoint | Proposed Method | |---|---| | `GET /api/items/search` | `search_items(query, scope)` -- fuzzy search with scope toggle | | `GET /api/items/by-uuid/{uuid}` | `get_item_by_uuid(uuid)` | | `GET /api/items/export.csv` | `export_items_csv()` | | `GET /api/items/template.csv` | `get_items_csv_template()` | | `GET /api/items/export.ods` | `export_items_ods()` | | `GET /api/items/template.ods` | `get_items_ods_template()` | | `POST /api/items/import` | `import_items_csv(csv_bytes, dry_run)` | | `POST /api/items/import.ods` | `import_items_ods(ods_bytes)` | | `DELETE /api/items/{pn}` | `delete_item(part_number)` (archive) | ## Priority - `search_items` and `get_item_by_uuid` are high priority (used by silo-mod for item lookup) - `delete_item` is high priority (basic CRUD completeness) - Import/export methods are medium priority (used by silo-calc) ## References - SPECIFICATION.md Section 11.1 (Item endpoints)
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kindred/silo-client#5