GET sites/{id}
Gets the site with the specified site id.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Site id of the site to retrieve. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
ResponseVMOfSiteVMName | Description | Type | Additional information |
---|---|---|---|
Resources | Collection of SiteVM |
None. |
|
ResultCode | FwApiResultCode |
None. |
|
ResultMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Resources": [ { "Id": 1, "Name": "sample string 2", "InternalName": "sample string 3", "Longitude": "sample string 4", "Latitude": "sample string 5", "Channels": [ { "Id": 1, "Name": "sample string 2", "Unit": "sample string 3", "ChannelType": "sample string 4", "IsVisible": true, "IsRainfallEnabled": true }, { "Id": 1, "Name": "sample string 2", "Unit": "sample string 3", "ChannelType": "sample string 4", "IsVisible": true, "IsRainfallEnabled": true } ] }, { "Id": 1, "Name": "sample string 2", "InternalName": "sample string 3", "Longitude": "sample string 4", "Latitude": "sample string 5", "Channels": [ { "Id": 1, "Name": "sample string 2", "Unit": "sample string 3", "ChannelType": "sample string 4", "IsVisible": true, "IsRainfallEnabled": true }, { "Id": 1, "Name": "sample string 2", "Unit": "sample string 3", "ChannelType": "sample string 4", "IsVisible": true, "IsRainfallEnabled": true } ] } ], "ResultCode": 0, "ResultMessage": "sample string 1" }
application/xml, text/xml
Sample:
<ResponseVMOfSiteVMFXJgzlgx xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FW.WebApi2.ViewModels"> <ResultCode>Ok</ResultCode> <ResultMessage>sample string 1</ResultMessage> <Resources> <SiteVM> <Channels> <ChannelVM> <ChannelType>sample string 4</ChannelType> <Id>1</Id> <IsRainfallEnabled>true</IsRainfallEnabled> <IsVisible>true</IsVisible> <Name>sample string 2</Name> <Unit>sample string 3</Unit> </ChannelVM> <ChannelVM> <ChannelType>sample string 4</ChannelType> <Id>1</Id> <IsRainfallEnabled>true</IsRainfallEnabled> <IsVisible>true</IsVisible> <Name>sample string 2</Name> <Unit>sample string 3</Unit> </ChannelVM> </Channels> <Id>1</Id> <InternalName>sample string 3</InternalName> <Latitude>sample string 5</Latitude> <Longitude>sample string 4</Longitude> <Name>sample string 2</Name> </SiteVM> <SiteVM> <Channels> <ChannelVM> <ChannelType>sample string 4</ChannelType> <Id>1</Id> <IsRainfallEnabled>true</IsRainfallEnabled> <IsVisible>true</IsVisible> <Name>sample string 2</Name> <Unit>sample string 3</Unit> </ChannelVM> <ChannelVM> <ChannelType>sample string 4</ChannelType> <Id>1</Id> <IsRainfallEnabled>true</IsRainfallEnabled> <IsVisible>true</IsVisible> <Name>sample string 2</Name> <Unit>sample string 3</Unit> </ChannelVM> </Channels> <Id>1</Id> <InternalName>sample string 3</InternalName> <Latitude>sample string 5</Latitude> <Longitude>sample string 4</Longitude> <Name>sample string 2</Name> </SiteVM> </Resources> </ResponseVMOfSiteVMFXJgzlgx>