| name | type | description |
|---|---|---|
| userid | query |
| media type | data type | description |
|---|---|---|
| application/json | array of InventoryEntry (JSON) | |
| application/xml;charset=UTF-8 | object |
GET /api/v1/inventory
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
[ {
"name" : "...",
"stockId" : 12345,
"stockEntry" : {
"name" : "...",
"typeCnr" : "...",
"id" : 12345
},
"id" : 12345
} ]
| name | type | description | constraints |
|---|---|---|---|
| inventoryid | path | int | |
| largeDifference | query | boolean | |
| userid | query |
| media type | data type |
|---|---|
| application/json | InventoryDataEntry (JSON) |
| application/xml;charset=UTF-8 | object |
POST /api/v1/inventory/{inventoryid}/entry
Content-Type: application/json
{
"itemCnr" : "...",
"amount" : 12345.0,
"identities" : [ {
"identity" : "...",
"amount" : 12345.0
}, {
"identity" : "...",
"amount" : 12345.0
} ]
}
HTTP/1.1 201 Created
| name | type | description | constraints |
|---|---|---|---|
| inventoryid | path | int | |
| changeAmountTo | query | boolean | |
| userid | query |
| media type | data type |
|---|---|
| application/json | InventoryDataEntry (JSON) |
| application/xml;charset=UTF-8 | object |
PUT /api/v1/inventory/{inventoryid}/entry
Content-Type: application/json
{
"itemCnr" : "...",
"amount" : 12345.0,
"identities" : [ {
"identity" : "...",
"amount" : 12345.0
}, {
"identity" : "...",
"amount" : 12345.0
} ]
}
HTTP/1.1 204 No Content
Einen Eintrag in der Inventurliste erzeugen
| name | type | description | constraints |
|---|---|---|---|
| amount | path | die Menge | |
| inventoryid | path | die Id der Inventur | int |
| itemid | path | die Id des Artikels | int |
| identity | query | die (optionale) Serien/Chargennummer sofern es ein entsprechender Artikel ist | |
| largeDifference | query | ist true wenn große Mengenabwechungen erlaubt sind | boolean |
| userid | query | der Token des aktuellen Benutzers |
POST /api/v1/inventory/{inventoryid}/entry/{itemid}/{amount}
Content-Type: */*
...
HTTP/1.1 201 Created
| name | type | description | constraints |
|---|---|---|---|
| amount | path | ||
| inventoryid | path | int | |
| itemid | path | int | |
| changeAmountTo | query | boolean | |
| identity | query | ||
| userid | query |
PUT /api/v1/inventory/{inventoryid}/entry/{itemid}/{amount}
Content-Type: */*
...
HTTP/1.1 204 No Content