URL |
|
---|---|
Method | GET |
Description | Receive a list of all available orders in the PTLControl. |
Response | { «orderid»: [ { "articledescription": «article description», "location": «location», "ordered": «amount ordered», "picked": «amount picked» }, ... ], ... } Note that |
Possible Error | HTTP404 with no body when no orders found. |
Status | DEVELOP |
URL |
|
---|---|
Method | GET |
Description | Receive the lines in order |
Response | [ { "articledescription": «article description», "location": «location», "ordered": «amount ordered», "picked": «amount picked» }, ... ] Note that |
Possible Error | HTTP404 with no body when the order was not found. |
Status | DEVELOP |
URL |
|
---|---|
Method | DELETE |
Description | Delete all orders |
Response | HTTP204 |
Status | DEVELOP |
URL |
|
---|---|
Method | DELETE |
Description | Delete order with orderid |
Response | HTTP204 |
Status | DEVELOP |
URL |
|
---|---|
Method | POST |
Description | Create a new order. |
Request | { «orderid»: { "orderlines": [ { "articledescription": «article description», "location": «location», "ordered": «amount ordered» }, ... ] }, ... } |
Response | HTTP201 without body if created or updated IMPLEMENTED |
Possible Error | HTTP400 if request was invalid (e.g. invalid JSON). A human readable error message can be found in the body. IMPLEMENTED |
Status | DEVELOP |
Add Comment