Artikel DB struktur geändert von CODEX
This commit is contained in:
1 parent
0c0a678eaa
commit
9c18234efe
95 files changed
+3872
-2316
No files matched your search
@@ -0,0 +1,51 @@
|
||||
@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
|
||||
Reference in new issue
Block a user