POST api/Capteurs/Data/Day
Renvoi le cumul des données mesurées de la journée spécifiée
Informations sur la Requête
Paramètres dans l'URL
Aucune.
Paramètres dans le Body
BindingCapteurDayInfoNon | Description | Type | Information complémentaire |
---|---|---|---|
Params | BindingCapteurInfo |
Aucune. |
|
Day | date |
Aucune. |
Format de la requête
application/json, text/json
Exemple :
{ "Params": { "GuID": "sample string 1", "IDModule": "sample string 2", "IDCapteur": "sample string 3" }, "Day": "2024-11-14T01:38:26.8237591+01:00" }
application/xml, text/xml
Exemple :
<CapteursModel.BindingCapteurDayInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/test.Models"> <Day>2024-11-14T01:38:26.8237591+01:00</Day> <Params> <GuID>sample string 1</GuID> <IDCapteur>sample string 3</IDCapteur> <IDModule>sample string 2</IDModule> </Params> </CapteursModel.BindingCapteurDayInfo>
Informations sur la Réponse
Descriptions des ressources
ViewDatasNon | Description | Type | Information complémentaire |
---|---|---|---|
MinValue | decimal number |
Aucune. |
|
MaxValue | decimal number |
Aucune. |
|
Unite | string |
Aucune. |
|
Datas | Dictionary of string [key] and ViewData [value] |
Aucune. |
Format de la Réponse
application/json, text/json
Exemple :
{ "MinValue": 1.1, "MaxValue": 2.1, "Unite": "sample string 3", "Datas": { "sample string 1": { "Date": "2024-11-14T01:38:27.2925948+01:00", "Value": 2.1, "Value2": 3.1 }, "sample string 2": { "Date": "2024-11-14T01:38:27.2925948+01:00", "Value": 2.1, "Value2": 3.1 } } }
application/xml, text/xml
Exemple :
<CapteursModel.ViewDatas xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/test.Models"> <Datas xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringCapteursModel.ViewDataFxCgVUbq> <d2p1:Key>sample string 1</d2p1:Key> <d2p1:Value> <Date>2024-11-14T01:38:27.2925948+01:00</Date> <Value>2.1</Value> <Value2>3.1</Value2> </d2p1:Value> </d2p1:KeyValueOfstringCapteursModel.ViewDataFxCgVUbq> <d2p1:KeyValueOfstringCapteursModel.ViewDataFxCgVUbq> <d2p1:Key>sample string 2</d2p1:Key> <d2p1:Value> <Date>2024-11-14T01:38:27.2925948+01:00</Date> <Value>2.1</Value> <Value2>3.1</Value2> </d2p1:Value> </d2p1:KeyValueOfstringCapteursModel.ViewDataFxCgVUbq> </Datas> <MaxValue>2.1</MaxValue> <MinValue>1.1</MinValue> <Unite>sample string 3</Unite> </CapteursModel.ViewDatas>