Facility getDistribution return strange structure


#1

Hi,
I have a problem in 7.6 version with the calling of the action “getDistribution” on type Facility. I notice that the returned structure is different from the previous version (7.2). In particular , I tested the call of this API from POSTMAN using those 2 different URLs (the first for env in 7.2 , the second for env in 7.6)

https://claradomus-stagedemo.c3iot.com/api/1/engie-claradomus/demo/Facility?action=getDistribution

https://engie-claradomus-stage2.c3iot.com/api/1/engie-claradomus/prod/Facility?action=getDistribution

Using the same json request :

{“ids”:[“0048597-001”,“0048597-002”,“0048598-001”,“0048598-002”,“0048598-003”,“0048598-004”,“0048598-005”,“0048598-006”,“0048598-007”,“0048598-008”,“0048598-009”,“0048598-010”,“0048598-012”,“0048598-015”,“0048598-016”,“0048598-017”,“0048598-018”,“0048598-020”,“0048598-024”,“0048598-026”,“0048598-027”,“0048788-001”,“0048788-002”,“0048788-003”,“0048788-004”,“0048788-005”,“0048788-006”,“0048788-007”,“0048788-008”,“0048788-009”,“0048788-010”,“0048788-011”,“0048788-012”,“0048788-013”,“0048788-014”,“0048788-015”,“0048788-016”,“0048788-017”,“0048788-018”,“0048788-019”,“0048788-020”,“0048788-021”,“0048788-022”,“0048788-023”,“0048788-024”,“0048788-025”,“0048788-026”,“0048788-027”,“0048788-028”,“0048788-029”,“0048788-030”,“0048788-031”,“0048788-032”,“0048788-033”,“0048788-034”,“0048788-035”,“0048788-036”,“0048788-037”,“0048788-038”,“0048788-039”,“0048788-040”,“0048788-041”,“0048788-042”,“0048788-043”,“0048788-045”,“0048788-046”,“0048788-047”,“0048788-051”,“0048788-052”,“0048788-053”,“0048788-054”,“0048788-055”,“0048788-056”,“0048788-057”,“0048788-058”,“0048788-059”,“0048788-060”,“0048788-061”,“0048788-062”,“0048788-067”,“0048788-068”,“0048810-001”,“0048810-002”,“0048810-003”,“0048810-004”,“0048810-005”,“0048810-006”,“0048810-007”,“0048810-008”,“0048810-009”,“0048810-010”,“0048810-011”,“0048810-012”,“0048810-013”,“0048827-001”,“0048827-002”,“0048827-003”,“0048827-005”,“0048827-006”,“0048827-007”,“0048827-008”,“0048827-009”,“0048827-010”,“0048827-011”,“0048827-012”,“0048827-013”,“0048827-014”,“0048827-015”,“0048827-016”,“0048827-017”,“0048827-018”,“0048827-019”,“0048827-020”,“0048827-024”,“0048827-026”,“0048827-027”,“0048827-028”,“0048827-030”,“0048827-032”,“0048827-042”,“0048827-045”,“0048827-046”,“0048827-047”,“0048827-052”,“0048828-001”,“0048828-002”,“0048828-003”,“0048828-004”,“0048828-005”,“0048828-006”,“0048828-007”,“0048828-008”,“0048828-015”,“0048828-017”,“0048828-018”,“0048828-020”,“0048828-021”,“0048828-024”,“0048828-025”,“0048828-026”,“0048828-028”,“0048828-029”,“0048828-030”,“0048828-052”,“0048828-054”,“0048828-055”,“0048828-056”,“0048828-058”,“0048828-059”,“0048828-060”,“0048828-061”,“0048828-063”,“0048828-064”,“0048828-065”,“0048828-067”,“0048828-068”,“0048828-069”,“0048828-070”,“0048828-071”,“0048828-072”,“0048828-073”,“0048828-080”,“0048828-081”,“0048828-085”,“0048828-086”,“0048828-089”,“0048828-093”,“0048828-097”,“0048828-099”,“0048828-101”,“0048828-102”,“0048828-103”,“0048828-105”,“0048828-107”,“0048828-108”,“0048828-109”,“0048828-110”,“0048828-118”,“0048828-120”,“0048828-121”,“0048828-123”,“0048828-124”,“0048828-125”,“0048828-126”,“0048828-127”,“0048828-128”,“0048828-129”,“0048828-130”,“0048828-132”,“0048828-133”,“0048828-134”,“0048828-135”,“0048828-136”,“0048828-138”,“0048828-140”,“0048828-141”,“0048831-001”,“0048831-002”,“0048831-003”,“0048831-004”,“0048831-005”,“0048831-006”,“0048831-008”,“0048831-009”,“0048831-010”,“0048831-011”,“0048831-012”,“0048831-013”,“0048831-015”,“0048831-016”,“0048831-017”,“0048831-018”,“0048831-019”,“0048855-002”,“0048855-003”,“0048855-004”,“0048855-005”,“0048855-005B”,“0048855-007”,“0048855-010”,“0048855-012”,“0048855-013”,“0048855-014”,“0048855-015”,“0048855-017”,“0048855-018”,“0048855-020”,“0048855-021”,“0048855-022”,“0048855-024”,“0048855-026”,“0048855-036”,“0048855-047”,“0048855-048”,“0048855-049”,“0048855-050”,“0048855-051”,“0048855-058”,“0048855-063”,“0048855-065”,“0048855-067”,“0048855-071”,“0048862-001”,“0048862-002”,“0048862-003”,“0048862-006”,“0048862-007”,“0048863-001”,“0048863-002”,“0048863-003”,“0048863-004”,“0048863-005”,“0048863-006”,“0048863-007”,“0048863-008”,“0048863-009”,“0048863-010”,“0048863-011”,“0048863-012”,“0048863-013”,“0048863-014”,“0048863-015”,“0048863-015B”,“0048863-016”,“0048863-017”,“0048863-018”,“0048863-019”,“0048863-020”,“0048863-021”,“0048875-001”,“0048875-002”,“0048875-004”,“0048875-005”,“0048875-006”,“0048875-008”,“0048875-010”,“0048875-011”,“0048886-001”,“0048886-002”,“0048886-003”,“0048886-004”,“0048886-005”,“0048886-006”,“0048886-007”,“0048886-008”,“0048886-009”,“0048886-010”,“0048886-011”,“0048886-012”,“0048886-013”,“0048886-014”,“0048927-001”,“0048940-001”,“0049231-001”,“0049231-003”,“0049231-004”,“0049231-005”,“0049231-006”,“0049231-007”,“0049231-008”,“0049231-009”,“0049231-010”,“0049231-011”,“0049231-012”,“0049231-013”,“0049231-014”,“0049231-015A”,“0049231-015B”,“0049248-001”,“0049248-014”,“0049248-024”,“0049248-025”,“0049248-027”,“0049248-029”,“0049248-030”,“0049248-035”,“0049248-037”,“0049248-038”,“0049248-040”,“0049248-041”,“0049248-042”,“0049248-043”,“0049248-044”,“0049248-045”,“0049248-046”,“0049248-047”,“0049248-048”,“10”,“11”,“12”,“13”,“14”,“15”,“16”,“18”,“2”,“26”,“28”,“29”,“30”,“31”,“32”,“33”,“35”,“38”,“39”,“4”,“44”,“47”,“48”,“5”,“50”,“51”,“52”,“53”,“56”,“57”,“60”,“61”,“62”,“7”,“8”],“metricName”:“energySpend_perTotalArea”,“period”:“last12m”,“start”:null,“end”:null,“binningType”:“quantile”,“numberBins”:4,“ignoreZeroValues”:true}

I received different response structure.
For 7.6 I received
image

For 7.2 I received (first lines)

Do you know why we have this different behaviour? The structure returned in 7.6 is not useful.

Thanks,
Laura


#2

#4