Locations

A Location is a space where materials are kept.

Attributes

  • id string

Endpoints

List Locations

/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", }] }

Show Location

/api/locations/[id]

Get the locations from the PPG database and return a JSON response.

Arguments

  • name string

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
{ "locations": [{ "id": "string", }] }