GET api/users/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

string

Required

Body Parameters

None.

Response Information

Resource Description

ResortUserDetails
NameDescriptionTypeAdditional information
FullName

string

None.

ProfileImage

string

None.

AgeRange

AgeRange

None.

IsBuddy

boolean

None.

BuddyPending

boolean

None.

BuddySender

boolean

None.

ActivityType

ActivityType

None.

SkillLevel

SkillLevel

None.

Telephone

string

None.

Email

string

None.

CheckedInResorts

Collection of BasicCheckedInResort

None.

IsMyProfile

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "FullName": "sample string 1",
  "ProfileImage": "sample string 2",
  "AgeRange": 0,
  "IsBuddy": true,
  "BuddyPending": true,
  "BuddySender": true,
  "ActivityType": 1,
  "SkillLevel": 1,
  "Telephone": "sample string 6",
  "Email": "sample string 7",
  "CheckedInResorts": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "Comment": "sample string 3",
      "DateTo": "2017-08-22T22:36:25.6870307+00:00",
      "DateFrom": "2017-08-22T22:36:25.6870307+00:00",
      "ResortImage": "sample string 6",
      "ResortUsersId": 7,
      "Statistics": {
        "Total": 1,
        "Male": 2,
        "Female": 3,
        "Beginner": 4,
        "Intermediate": 5,
        "Advanced": 6
      }
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "Comment": "sample string 3",
      "DateTo": "2017-08-22T22:36:25.6870307+00:00",
      "DateFrom": "2017-08-22T22:36:25.6870307+00:00",
      "ResortImage": "sample string 6",
      "ResortUsersId": 7,
      "Statistics": {
        "Total": 1,
        "Male": 2,
        "Female": 3,
        "Beginner": 4,
        "Intermediate": 5,
        "Advanced": 6
      }
    }
  ],
  "IsMyProfile": true
}

application/xml, text/xml

Sample:
<ResortUserDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Agency.Contra.SkiApp.Api.Models.User">
  <ActivityType>Ski</ActivityType>
  <AgeRange>Null</AgeRange>
  <BuddyPending>true</BuddyPending>
  <BuddySender>true</BuddySender>
  <CheckedInResorts xmlns:d2p1="http://schemas.datacontract.org/2004/07/Agency.Contra.SkiApp.Api.Models.Resort">
    <d2p1:BasicCheckedInResort>
      <d2p1:Comment>sample string 3</d2p1:Comment>
      <d2p1:DateFrom>2017-08-22T22:36:25.6870307+00:00</d2p1:DateFrom>
      <d2p1:DateTo>2017-08-22T22:36:25.6870307+00:00</d2p1:DateTo>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:ResortImage>sample string 6</d2p1:ResortImage>
      <d2p1:ResortUsersId>7</d2p1:ResortUsersId>
      <d2p1:Statistics>
        <d2p1:Advanced>6</d2p1:Advanced>
        <d2p1:Beginner>4</d2p1:Beginner>
        <d2p1:Female>3</d2p1:Female>
        <d2p1:Intermediate>5</d2p1:Intermediate>
        <d2p1:Male>2</d2p1:Male>
        <d2p1:Total>1</d2p1:Total>
      </d2p1:Statistics>
    </d2p1:BasicCheckedInResort>
    <d2p1:BasicCheckedInResort>
      <d2p1:Comment>sample string 3</d2p1:Comment>
      <d2p1:DateFrom>2017-08-22T22:36:25.6870307+00:00</d2p1:DateFrom>
      <d2p1:DateTo>2017-08-22T22:36:25.6870307+00:00</d2p1:DateTo>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 2</d2p1:Name>
      <d2p1:ResortImage>sample string 6</d2p1:ResortImage>
      <d2p1:ResortUsersId>7</d2p1:ResortUsersId>
      <d2p1:Statistics>
        <d2p1:Advanced>6</d2p1:Advanced>
        <d2p1:Beginner>4</d2p1:Beginner>
        <d2p1:Female>3</d2p1:Female>
        <d2p1:Intermediate>5</d2p1:Intermediate>
        <d2p1:Male>2</d2p1:Male>
        <d2p1:Total>1</d2p1:Total>
      </d2p1:Statistics>
    </d2p1:BasicCheckedInResort>
  </CheckedInResorts>
  <Email>sample string 7</Email>
  <FullName>sample string 1</FullName>
  <IsBuddy>true</IsBuddy>
  <IsMyProfile>true</IsMyProfile>
  <ProfileImage>sample string 2</ProfileImage>
  <SkillLevel>Beginner</SkillLevel>
  <Telephone>sample string 6</Telephone>
</ResortUserDetails>