Warehouses
Attributes
-
id
string
Unique identifier for the object.
-
name
string
Non-unique name of the warehouse.
- address1 string
- address2 string
- address3 string
- address4 string
- address5 string
Endpoints
List Warehouses
get /api/warehousesGet the list of warehouses from the PPG database and return a JSON response.
Arguments
- name string
- limit
-
offset
integer
Will return items, but only those after the integer amount.
- countOnly boolean
Request with curl
curl "http://[Your IP]/api/warehouses" \
-X
get
\-H "Content-Type: application/json" \-H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{
"warehouses": [{
"id": "8126B842-3EDF-4A2D-B11E-2679219FA5A6",
"name": "Warehouse 1",
"address1": "string",
"address2": "string",
"address3": "string",
"address4": "string",
"address5": "string",
}]
}]
}
Show Warehouse
get /api/warehouses/[id]Get a single warehouse from the PPG database and return a JSON response.
Request with curl
curl "http://[Your IP]/api/warehouses/[id]" \
-X
get
\-H "Content-Type: application/json" \-H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{
"warehouses": [{
"id": "8126B842-3EDF-4A2D-B11E-2679219FA5A6",
"name": "Warehouse 1",
"address1": "string",
"address2": "string",
"address3": "string",
"address4": "string",
"address5": "string",
}]
}]
}