GET api/Reports/Sites?activeOnly={activeOnly}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| activeOnly | boolean |
Default value is True |
Body Parameters
None.
Response Information
Resource Description
SitesReportModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Sites | Collection of SiteReportItem |
None. |
|
| Message | string |
None. |
|
| Success | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Sites": [
{
"SiteID": 1,
"MainDomain": "sample string 2",
"HasSSL": true,
"IsSiteActive": true,
"LanguageID": 5,
"LanguageName": "sample string 6",
"LanguageSymbol": "sample string 7",
"IsPrimaryLanguageSite": true,
"UseLanguageSubfolder": true,
"CustomerID": 10
},
{
"SiteID": 1,
"MainDomain": "sample string 2",
"HasSSL": true,
"IsSiteActive": true,
"LanguageID": 5,
"LanguageName": "sample string 6",
"LanguageSymbol": "sample string 7",
"IsPrimaryLanguageSite": true,
"UseLanguageSubfolder": true,
"CustomerID": 10
}
],
"Message": "sample string 1",
"Success": true
}
text/xml
Sample:
<SitesReportModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MoodAPI.Models.Reports">
<Message xmlns="http://schemas.datacontract.org/2004/07/MoodAPI.Models">sample string 1</Message>
<Success xmlns="http://schemas.datacontract.org/2004/07/MoodAPI.Models">true</Success>
<Sites xmlns:d2p1="http://schemas.datacontract.org/2004/07/BLL.Reports">
<d2p1:SiteReportItem>
<d2p1:CustomerID>10</d2p1:CustomerID>
<d2p1:HasSSL>true</d2p1:HasSSL>
<d2p1:IsPrimaryLanguageSite>true</d2p1:IsPrimaryLanguageSite>
<d2p1:IsSiteActive>true</d2p1:IsSiteActive>
<d2p1:LanguageID>5</d2p1:LanguageID>
<d2p1:LanguageName>sample string 6</d2p1:LanguageName>
<d2p1:LanguageSymbol>sample string 7</d2p1:LanguageSymbol>
<d2p1:MainDomain>sample string 2</d2p1:MainDomain>
<d2p1:SiteID>1</d2p1:SiteID>
<d2p1:UseLanguageSubfolder>true</d2p1:UseLanguageSubfolder>
</d2p1:SiteReportItem>
<d2p1:SiteReportItem>
<d2p1:CustomerID>10</d2p1:CustomerID>
<d2p1:HasSSL>true</d2p1:HasSSL>
<d2p1:IsPrimaryLanguageSite>true</d2p1:IsPrimaryLanguageSite>
<d2p1:IsSiteActive>true</d2p1:IsSiteActive>
<d2p1:LanguageID>5</d2p1:LanguageID>
<d2p1:LanguageName>sample string 6</d2p1:LanguageName>
<d2p1:LanguageSymbol>sample string 7</d2p1:LanguageSymbol>
<d2p1:MainDomain>sample string 2</d2p1:MainDomain>
<d2p1:SiteID>1</d2p1:SiteID>
<d2p1:UseLanguageSubfolder>true</d2p1:UseLanguageSubfolder>
</d2p1:SiteReportItem>
</Sites>
</SitesReportModel>