GET api/resorts?longitude={longitude}&latitude={latitude}&dateFrom={dateFrom}&dateTo={dateTo}&pageSize={pageSize}&pageNo={pageNo}&query={query}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
longitude

decimal number

None.

latitude

decimal number

None.

dateFrom

date

None.

dateTo

date

None.

pageSize

integer

Default value is 25

pageNo

integer

Default value is 1

query

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of BasicResort
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Image

string

None.

CheckedIn

boolean

None.

Statistics

ResortStatistics

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Name": "sample string 2",
    "Image": "sample string 3",
    "CheckedIn": true,
    "Statistics": {
      "Total": 1,
      "Male": 2,
      "Female": 3,
      "Beginner": 4,
      "Intermediate": 5,
      "Advanced": 6
    }
  },
  {
    "Id": 1,
    "Name": "sample string 2",
    "Image": "sample string 3",
    "CheckedIn": true,
    "Statistics": {
      "Total": 1,
      "Male": 2,
      "Female": 3,
      "Beginner": 4,
      "Intermediate": 5,
      "Advanced": 6
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfBasicResort xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Agency.Contra.SkiApp.Api.Models.Resort">
  <BasicResort>
    <CheckedIn>true</CheckedIn>
    <Id>1</Id>
    <Image>sample string 3</Image>
    <Name>sample string 2</Name>
    <Statistics>
      <Advanced>6</Advanced>
      <Beginner>4</Beginner>
      <Female>3</Female>
      <Intermediate>5</Intermediate>
      <Male>2</Male>
      <Total>1</Total>
    </Statistics>
  </BasicResort>
  <BasicResort>
    <CheckedIn>true</CheckedIn>
    <Id>1</Id>
    <Image>sample string 3</Image>
    <Name>sample string 2</Name>
    <Statistics>
      <Advanced>6</Advanced>
      <Beginner>4</Beginner>
      <Female>3</Female>
      <Intermediate>5</Intermediate>
      <Male>2</Male>
      <Total>1</Total>
    </Statistics>
  </BasicResort>
</ArrayOfBasicResort>