List segments
Returns the list of segments available to your perimeter.
A segment is a product family in which the products share common technical properties and where comparison between them make sense.
Each segment has a customized data model, allowing for very fine definition without bothering products from other segments with properties that would never be used.
GET /segments
curl \
-X GET https://api.ppe-analytics.com/api/v1/segments \
-H "PPEApiKey: $API_KEY"
Response examples (200)
{
"status": "OK",
"result": {
"segments": [
{
"key": "head-protection",
"trads": {
"en": "Head protection",
"fr": "Protection de la tête"
},
"picto_url": "https://app.ppe-analytics.com/static/pictos/300w/epi-head.png",
"api_get_products": "/api/v1/products/hand-protection",
"api_get_properties": "/api/v1/segments/hand-protection"
},
{
"key": "fall-protection",
"trads": {
"en": "Fall protection",
"fr": "Protection antichute"
},
"picto_url": "https://app.ppe-analytics.com/static/pictos/300w/epi-head.png",
"api_get_products": "/api/v1/segments/head-protection",
"api_get_properties": "/api/v1/segments/head-protection"
}
]
}
}