Storage
Last updated on 13-May-2020 by Jakob Jakobsen Boysen
On this page
Get location
GET /api/storage/location/{id}
Request
Path parameters
id
ID of location
Response
The location entity with the following additional properties:
{
"checkin": number, // the number of total check in
"checkout": number, // the number of total check out
"available": number // the current available space (compared to capacity and currently check in)
}
Get locations
GET /api/storage/location
Request
Query parameters
OData query parameters are used, as documented here.
Response
A list of locations with the same properties as the previous endpoint
Create locations
POST /api/storage/location
Request
Body
A JSON array of locations.
Response
The created locations.
Check in
POST /api/storage/location/{id}/checkin
Request
Path parameters
id
ID of location to check in
Body
[{
"eClass": , // typically Sample or Plate
"id": // the id of the entity to check in
}, ...]
Response
The updated location.
Check out
POST /api/storage/location/checkout
Request
Body
[{
"eClass": , // typically Sample or Plate
"id": // the id of the entity to check out
}, ...]
Response
The updated location.