GET restapi/sites/countries/{countryCode}/v1?searchText={searchText}

Get sites by country code (case insensitive).

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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
countryCode

Country code.

string

Required

searchText

Search text.

string

Default value is

Body Parameters

None.

Response Information

Resource Description

List of sites for the specified country.

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>