Get view
Get the full information about a view (for more information about what is a view, see List views endpoint above)
For each segment, all zones and the items in each zone are provided in the correct order.
Some items can be seen in different segments and zones.
Query parameters
-
with_json_path boolean
Set to "1" to also request api endpoint + json path for each item in the view, allosing easier query of detailed items attributes
GET
/views/{view_key}
curl \
-X GET https://api.ppe-analytics.com/api/v1/views/{view_key} \
-H "PPEApiKey: $API_KEY"
Response examples (200)
{
"status": "OK",
"result": {
"view": {
"key": "web",
"trads": {
"en": "Web view to control website",
"fr": "Vue site web"
}
},
"zones": [
{
"key": "norms",
"rank": 0,
"trads": {
"en": "Norms",
"fr": "Normes"
}
},
{
"key": "advantages",
"rank": 1,
"trads": {
"en": "Advantages",
"fr": "Avantages"
}
}
],
"segments": {
"foot-protection": {
"norms": [
{
"key": "en20345",
"rank": 0,
"type": "property"
}
],
"default": [
{
"key": "technical-name",
"rank": 0,
"type": "property"
}
]
},
"hand-protection": {
"norms": [
{
"key": "en388",
"rank": 0,
"type": "property"
},
{
"key": "tile-900",
"rank": 1,
"type": "tile"
}
],
"default": [
{
"key": "technical-name",
"rank": 0,
"type": "property"
}
],
"advantages": [
{
"key": "acme--fabdis-desc-32",
"rank": 0,
"type": "localized-field"
},
{
"key": "mycorp/comfort",
"rank": 1,
"type": "property"
}
]
}
}
}
}