GET api/Users/GetUser?userId={userId}&loadProfileImage={loadProfileImage}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

string

None.

loadProfileImage

boolean

Default value is False

Body Parameters

None.

Response Information

Resource Description

LiteUserMedium
NameDescriptionTypeAdditional information
AboutMe

string

None.

AddressCity

string

None.

AddressLat

decimal number

None.

AddressLine1

string

None.

AddressLine2

string

None.

AddressLng

decimal number

None.

AddressPostCode

string

None.

ProfileImage

Collection of byte

None.

Id

string

None.

Email

string

None.

FirstName

string

None.

LastName

string

None.

PhoneNumber

string

None.

ProfileImageThumbnail

Collection of byte

None.

Rating

LiteUserRatingTotal

None.

YearLevel

integer

None.

RoleName

string

None.

IsBlacklisted

boolean

None.

CreatedOn

date

None.

SchoolName

string

None.

VouchCount

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "AboutMe": "sample string 1",
  "AddressCity": "sample string 2",
  "AddressLat": 1.0,
  "AddressLine1": "sample string 3",
  "AddressLine2": "sample string 4",
  "AddressLng": 1.0,
  "AddressPostCode": "sample string 5",
  "ProfileImage": "QEA=",
  "Id": "sample string 6",
  "Email": "sample string 7",
  "FirstName": "sample string 8",
  "LastName": "sample string 9",
  "PhoneNumber": "sample string 10",
  "ProfileImageThumbnail": "QEA=",
  "Rating": {
    "JobsCompletedCount": 1,
    "SmilesCount": 2
  },
  "YearLevel": 11,
  "RoleName": "sample string 12",
  "IsBlacklisted": true,
  "CreatedOn": "2019-12-09T16:06:27.5031187+00:00",
  "SchoolName": "sample string 15",
  "VouchCount": 16
}

application/xml, text/xml

Sample:
<LiteUserMedium xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HubApi.Models.Hub.Api">
  <CreatedOn>2019-12-09T16:06:27.5031187+00:00</CreatedOn>
  <Email>sample string 7</Email>
  <FirstName>sample string 8</FirstName>
  <Id>sample string 6</Id>
  <IsBlacklisted>true</IsBlacklisted>
  <LastName>sample string 9</LastName>
  <PhoneNumber>sample string 10</PhoneNumber>
  <ProfileImageThumbnail>QEA=</ProfileImageThumbnail>
  <Rating>
    <JobsCompletedCount>1</JobsCompletedCount>
    <SmilesCount>2</SmilesCount>
  </Rating>
  <RoleName>sample string 12</RoleName>
  <SchoolName>sample string 15</SchoolName>
  <VouchCount>16</VouchCount>
  <YearLevel>11</YearLevel>
  <AboutMe>sample string 1</AboutMe>
  <AddressCity>sample string 2</AddressCity>
  <AddressLat>1</AddressLat>
  <AddressLine1>sample string 3</AddressLine1>
  <AddressLine2>sample string 4</AddressLine2>
  <AddressLng>1</AddressLng>
  <AddressPostCode>sample string 5</AddressPostCode>
  <ProfileImage>QEA=</ProfileImage>
</LiteUserMedium>