Get measurement charts¶
GET
*base*/measurement-charts
GET
*base*/measurement-charts/*measurementChartId*
Fetches a specific measurement chart referenced by its ID, or the full list of measurement charts.
If the measurement-chart-id parameter is specified, one measurement chart is fetched, otherwise all measurement charts in the catalog are fetched.
Parameters¶
int
optional
|
Measurement chart ID as integer. |
Response¶
200
Content-type: application/json
object key measurement chart object
required
|
The
|
Response example¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | HTTP/1.1 200 OK
Content-type: application/json
{
"2": {
"name" : "Test",
"rows" : {
"Length" : {
"L" : "30",
"M" : "27",
"S" : "23"
}
},
"columnNames" : [
"S",
"M",
"L"
],
"unit" : "cm",
"rowNames" : [
"Length"
],
"measurementChart" : "2"
}
}
|
Fetching a specific collection using collectionId
:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | HTTP/1.1 200 OK
Content-type: application/json
{
"name" : "Test",
"rows" : {
"Length" : {
"L" : "30",
"M" : "27",
"S" : "23"
}
},
"columnNames" : [
"S",
"M",
"L"
],
"unit" : "cm",
"rowNames" : [
"Length"
],
"measurementChart" : "2"
}
|
Error example¶
1 2 3 4 5 6 7 8 | HTTP/1.1 404 Not Found
Content-type: application/json
{
"errors" : {
"measurementChart" : "not found"
}
}
|