52 lines
1.1 KiB
HTTP
52 lines
1.1 KiB
HTTP
@api = http://192.168.50.205/api
|
|
|
|
### Banane ohne Hersteller und Varianten
|
|
POST {{api}}/articles
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"articleNumber": "OBST-001",
|
|
"name": "Banane, frisch",
|
|
"baseUnit": "Stück",
|
|
"isConsumable": true,
|
|
"trackingMode": "quantity",
|
|
"tracksExpiryDate": false,
|
|
"attributes": { "Bio": true },
|
|
"packaging": []
|
|
}
|
|
|
|
### Milch mit Verpackung und Ablaufverfolgung
|
|
POST {{api}}/articles
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"articleNumber": "MILCH-001",
|
|
"name": "Vollmilch, 3,5 % Fett",
|
|
"baseUnit": "Liter",
|
|
"isConsumable": true,
|
|
"trackingMode": "batch",
|
|
"tracksExpiryDate": true,
|
|
"attributes": { "Fettgehalt": 3.5 },
|
|
"packaging": [{ "name": "1-Liter-Packung", "quantityInBaseUnits": 1 }]
|
|
}
|
|
|
|
### Raspberry Pi mit Einzelstückführung
|
|
POST {{api}}/articles
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"articleNumber": "ELEK-001",
|
|
"name": "Raspberry Pi 5, 8 GB RAM",
|
|
"baseUnit": "Stück",
|
|
"isConsumable": false,
|
|
"trackingMode": "individual",
|
|
"tracksExpiryDate": false,
|
|
"attributes": { "Arbeitsspeicher GB": 8 }
|
|
}
|
|
|
|
### Übersicht
|
|
GET {{api}}/articles
|
|
|
|
### Migrationsstatus
|
|
GET {{api}}/articles/migration-status
|