GET api/Resorts/{id}?dateFrom={dateFrom}&dateTo={dateTo}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

dateFrom

date

None.

dateTo

date

None.

Body Parameters

None.

Response Information

Resource Description

ResortProfile
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

Image

string

None.

CheckedInUsers

Collection of ResortBasicUser

None.

Statistics

ResortStatistics

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "Image": "sample string 3",
  "CheckedInUsers": [
    {
      "Id": "sample string 1",
      "FullName": "sample string 2",
      "ProfileImage": "sample string 3",
      "IsBuddy": true,
      "BuddyPending": true,
      "BuddySender": true,
      "ActivityType": 1,
      "SkillLevel": 1,
      "DateFrom": "2017-08-24T06:52:18.5314742+00:00",
      "DateTo": "2017-08-24T06:52:18.5314742+00:00",
      "Comment": "sample string 9"
    },
    {
      "Id": "sample string 1",
      "FullName": "sample string 2",
      "ProfileImage": "sample string 3",
      "IsBuddy": true,
      "BuddyPending": true,
      "BuddySender": true,
      "ActivityType": 1,
      "SkillLevel": 1,
      "DateFrom": "2017-08-24T06:52:18.5314742+00:00",
      "DateTo": "2017-08-24T06:52:18.5314742+00:00",
      "Comment": "sample string 9"
    }
  ],
  "Statistics": {
    "Total": 1,
    "Male": 2,
    "Female": 3,
    "Beginner": 4,
    "Intermediate": 5,
    "Advanced": 6
  }
}

application/xml, text/xml

Sample:
<ResortProfile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Agency.Contra.SkiApp.Api.Models.Resort">
  <CheckedInUsers xmlns:d2p1="http://schemas.datacontract.org/2004/07/Agency.Contra.SkiApp.Api.Models.User">
    <d2p1:ResortBasicUser>
      <d2p1:ActivityType>Ski</d2p1:ActivityType>
      <d2p1:BuddyPending>true</d2p1:BuddyPending>
      <d2p1:BuddySender>true</d2p1:BuddySender>
      <d2p1:Comment>sample string 9</d2p1:Comment>
      <d2p1:DateFrom>2017-08-24T06:52:18.5314742+00:00</d2p1:DateFrom>
      <d2p1:DateTo>2017-08-24T06:52:18.5314742+00:00</d2p1:DateTo>
      <d2p1:FullName>sample string 2</d2p1:FullName>
      <d2p1:Id>sample string 1</d2p1:Id>
      <d2p1:IsBuddy>true</d2p1:IsBuddy>
      <d2p1:ProfileImage>sample string 3</d2p1:ProfileImage>
      <d2p1:SkillLevel>Beginner</d2p1:SkillLevel>
    </d2p1:ResortBasicUser>
    <d2p1:ResortBasicUser>
      <d2p1:ActivityType>Ski</d2p1:ActivityType>
      <d2p1:BuddyPending>true</d2p1:BuddyPending>
      <d2p1:BuddySender>true</d2p1:BuddySender>
      <d2p1:Comment>sample string 9</d2p1:Comment>
      <d2p1:DateFrom>2017-08-24T06:52:18.5314742+00:00</d2p1:DateFrom>
      <d2p1:DateTo>2017-08-24T06:52:18.5314742+00:00</d2p1:DateTo>
      <d2p1:FullName>sample string 2</d2p1:FullName>
      <d2p1:Id>sample string 1</d2p1:Id>
      <d2p1:IsBuddy>true</d2p1:IsBuddy>
      <d2p1:ProfileImage>sample string 3</d2p1:ProfileImage>
      <d2p1:SkillLevel>Beginner</d2p1:SkillLevel>
    </d2p1:ResortBasicUser>
  </CheckedInUsers>
  <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>
</ResortProfile>