POST api/Capteurs/Data/Year
Renvoi le cumul des données mesurées de l'année spécifiée
Informations sur la Requête
Paramètres dans l'URL
Aucune.
Paramètres dans le Body
BindingCapteurYearInfoNon | Description | Type | Information complémentaire |
---|---|---|---|
Params | BindingCapteurInfo |
Aucune. |
|
YearNumber | integer |
Aucune. |
Format de la requête
application/json, text/json
Exemple :
{ "Params": { "GuID": "sample string 1", "IDModule": "sample string 2", "IDCapteur": "sample string 3" }, "YearNumber": 1 }
application/xml, text/xml
Exemple :
<CapteursModel.BindingCapteurYearInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/test.Models"> <Params> <GuID>sample string 1</GuID> <IDCapteur>sample string 3</IDCapteur> <IDModule>sample string 2</IDModule> </Params> <YearNumber>1</YearNumber> </CapteursModel.BindingCapteurYearInfo>
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-21T11:06:26.6454304+01:00", "Value": 2.1, "Value2": 3.1 }, "sample string 2": { "Date": "2024-11-21T11:06:26.6454304+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-21T11:06:26.6454304+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-21T11:06:26.6454304+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>