GET sites/{id}/channels

Get all of the channels from the identified site.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Site id of the site whose channels will be retrieved.

integer

Required

Body Parameters

None.

Response Information

Resource Description

ResponseVMOfChannelVM
NameDescriptionTypeAdditional information
Resources

Collection of ChannelVM

None.

ResultCode

FwApiResultCode

None.

ResultMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Resources": [
    {
      "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:
<ResponseVMOfChannelVMFXJgzlgx 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>
    <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>
  </Resources>
</ResponseVMOfChannelVMFXJgzlgx>