Locations

A Location is a space where materials are kept.

Attributes

  • id string

  • name string

  • quantity integer

    Amount of items at this location.

Endpoints

List Locations

get /api/locations

Arguments

Request with curl
curl "http://[Your IP]/api/locations" \ -X get \-H "Content-Type: application/json" \-H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{ "locations": [{ "id": "string", "name": "string", "quantity": "integer", }] }] }

Show Location

get /api/locations/[id]

Get a single location from the PPG database and return a JSON response.

Request with curl
curl "http://[Your IP]/api/locations/[id]" \ -X get \-H "Content-Type: application/json" \ -H "Authorization: Bearer [Your JWT Access Token]"
Example Response
{ "location": { "id": "string", "name": "string", "quantity": integer, } }