API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console
Entité · tools

Tool Schema

ID du schéma
tool
Collection
tools
Autorisations
  • Liretool_view
  • Créertool_create
  • Modifiertool_edit
  • Supprimertool_delete

Champs

Tool Schema

tools4 autorisations

Schema for validating tool / Werkzeug entities

namestringobligatoire

Tool name / Bezeichnung

1–200 caractères
descriptionstringfacultatif

Optional description

max. 2000 caractèresnullable
typestringobligatoire

TOOL = individual tool, BAG = tool bag containing other tools

TOOLBAG
categorystringfacultatif

Tool category

ElektrowerkzeugHandwerkzeugMesswerkzeugMaschineSonstiges
nullable
manufacturerstringfacultatif

Manufacturer / Hersteller

max. 100 caractèresnullable
modelstringfacultatif

Model name

max. 100 caractèresnullable
serialNumberstringfacultatif

Serial number / Seriennummer

max. 100 caractèresnullable
statusstringobligatoire

IN_STORAGE = im Lager, CHECKED_OUT = mitgenommen

IN_STORAGECHECKED_OUT
Par défaut : "IN_STORAGE"
checkedOutByuuidfacultatif

User ID who checked out the tool

nullable
checkedOutAtdatetimefacultatif

Timestamp when tool was checked out

nullable
toolBagIduuidfacultatif

Parent tool bag ID (only for type=TOOL)

nullable
locationstringfacultatif

Storage location / Lagerort (e.g. Regal A3)

max. 200 caractèresnullable
purchaseDatedatefacultatif

Purchase date

nullable
purchasePricenumberfacultatif

Purchase price in EUR

≥ 0nullable
notesstringfacultatif

Free-text notes

max. 5000 caractèresnullable
tagsstring[]facultatif

Tags for categorization

Par défaut : []

Endpoints standard

Cette ressource suit le contrat CRUD générique de la plateforme. Lisez les conventions pour la pagination, l'idempotence, le verrouillage optimiste et l'audit. Les endpoints principaux :

  • GET /api/v1/tools — Liste, paginée et filtrable
  • GET /api/v1/tools/<id> — Une entité
  • POST /api/v1/tools — Créer
  • PATCH /api/v1/tools/<id> — Mise à jour partielle
  • DELETE /api/v1/tools/<id> — Suppression logique
  • GET /api/v1/tools/<id>/timeline — Audit et activités

Recherche