Storage Units

Attributes

  • id string

    Unique identifier for the object.

  • name string

  • type integer

Endpoints

List Storage Units

/api/storage_units

Get the list of storage units from the PPG database and return a JSON response.

Arguments

  • name string

  • type integer

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

Show Storage Unit

/api/storage_units/[id]

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

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