GET restapi/sites/all/v1?sitesFilter={sitesFilter}
Get all customer sites (used e.g. by welcome page)
This method does not have security checks - it is open.
Optional filtering by site type: Itslearning, Parents.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
sitesFilter |
[All|Itslearning|Parents] filter for sites |
Itsolutions.Itslearning.Web.RestApi.Public.Unauthenticated.SitesFilter |
Default value is All |
Body Parameters
None.
Response Information
Resource Description
EntityListOfItslearning.RestApi.Entities.SiteBaseName | Description | Type | Additional information |
---|---|---|---|
EntityArray | Collection of Itslearning.RestApi.Entities.SiteBase |
None. |
|
Total | integer |
None. |
|
CurrentPageIndex | integer |
None. |
|
PageSize | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "EntityArray": [ { "CustomerId": 1, "Title": "sample string 2", "ShortName": "sample string 3", "CultureName": "sample string 4", "BaseUrl": "sample string 5", "IsPersonalRestApiEnabled": true, "ShowCustomerInDropdownList": true, "CountryCode": "sample string 8", "StateCode": "sample string 9", "Segment": 0 }, { "CustomerId": 1, "Title": "sample string 2", "ShortName": "sample string 3", "CultureName": "sample string 4", "BaseUrl": "sample string 5", "IsPersonalRestApiEnabled": true, "ShowCustomerInDropdownList": true, "CountryCode": "sample string 8", "StateCode": "sample string 9", "Segment": 0 } ], "Total": 1, "CurrentPageIndex": 2, "PageSize": 3 }
application/xml, text/xml
Sample:
<EntityList xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <CurrentPageIndex>2</CurrentPageIndex> <EntityArray> <SiteBase> <BaseUrl>sample string 5</BaseUrl> <CountryCode>sample string 8</CountryCode> <CultureName>sample string 4</CultureName> <CustomerId>1</CustomerId> <IsPersonalRestApiEnabled>true</IsPersonalRestApiEnabled> <Segment>Higher</Segment> <ShortName>sample string 3</ShortName> <ShowCustomerInDropdownList>true</ShowCustomerInDropdownList> <StateCode>sample string 9</StateCode> <Title>sample string 2</Title> </SiteBase> <SiteBase> <BaseUrl>sample string 5</BaseUrl> <CountryCode>sample string 8</CountryCode> <CultureName>sample string 4</CultureName> <CustomerId>1</CustomerId> <IsPersonalRestApiEnabled>true</IsPersonalRestApiEnabled> <Segment>Higher</Segment> <ShortName>sample string 3</ShortName> <ShowCustomerInDropdownList>true</ShowCustomerInDropdownList> <StateCode>sample string 9</StateCode> <Title>sample string 2</Title> </SiteBase> </EntityArray> <PageSize>3</PageSize> <Total>1</Total> </EntityList>