InventoryApi Resource

GET /api/v1/inventory

Request Parameters
name type description
userid query
Response Body
media type data type description
application/json array of InventoryEntry (JSON)
application/xml;charset=UTF-8 object

Example

Request
GET /api/v1/inventory
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
[ {
  "name" : "...",
  "stockId" : 12345,
  "stockEntry" : {
    "name" : "...",
    "typeCnr" : "...",
    "id" : 12345
  },
  "id" : 12345
} ]
                
              

POST /api/v1/inventory/{inventoryid}/entry

Request Parameters
name type description constraints
inventoryid path int
largeDifference query boolean
userid query  
Request Body
media type data type
application/json InventoryDataEntry (JSON)
application/xml;charset=UTF-8 object

Example

Request
POST /api/v1/inventory/{inventoryid}/entry
Content-Type: application/json

                
{
  "itemCnr" : "...",
  "amount" : 12345.0,
  "identities" : [ {
    "identity" : "...",
    "amount" : 12345.0
  }, {
    "identity" : "...",
    "amount" : 12345.0
  } ]
}
                
              
Response
HTTP/1.1 201 Created

              

PUT /api/v1/inventory/{inventoryid}/entry

Request Parameters
name type description constraints
inventoryid path int
changeAmountTo query boolean
userid query  
Request Body
media type data type
application/json InventoryDataEntry (JSON)
application/xml;charset=UTF-8 object

Example

Request
PUT /api/v1/inventory/{inventoryid}/entry
Content-Type: application/json

                
{
  "itemCnr" : "...",
  "amount" : 12345.0,
  "identities" : [ {
    "identity" : "...",
    "amount" : 12345.0
  }, {
    "identity" : "...",
    "amount" : 12345.0
  } ]
}
                
              
Response
HTTP/1.1 204 No Content

              

POST /api/v1/inventory/{inventoryid}/entry/{itemid}/{amount}

Einen Eintrag in der Inventurliste erzeugen

Request Parameters
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  

Example

Request
POST /api/v1/inventory/{inventoryid}/entry/{itemid}/{amount}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 201 Created

              

PUT /api/v1/inventory/{inventoryid}/entry/{itemid}/{amount}

Request Parameters
name type description constraints
amount path  
inventoryid path int
itemid path int
changeAmountTo query boolean
identity query  
userid query  

Example

Request
PUT /api/v1/inventory/{inventoryid}/entry/{itemid}/{amount}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 204 No Content