GET restapi/sites/v1?startsWith={startsWith}&PageIndex={PageIndex}&PageSize={PageSize}&sitesFilter={sitesFilter}

Get sites that have itslearning ordered by title.

This method does not have security checks - it is open.

Optional filtering by titles containing words starting with specific phrases (separated by space).

Optional filtering by site type: Itslearning, Parents.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
startsWith

E.g. startsWith=ber gen, will return all sites where title has at least one word starting with 'ber' and one starting with 'gen'(not case sensitive)

string

Default value is

PageIndex

integer

None.

PageSize

integer

None.

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.SiteBase
NameDescriptionTypeAdditional 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>