GET api/v1/user/{id}
Get a specific user by id.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Guid UserId. Use Guid.Empty for self. |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
UserDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
User Id |
globally unique identifier |
None. |
Url | string |
None. |
|
AccountId |
The Id of the account the user is assigned to |
string |
None. |
Name |
The users name |
string |
None. |
UserName |
UserName (used to login with) |
string |
None. |
FullUserName |
User Id and Account name |
string |
None. |
DisplayName |
Users first and last name |
string |
None. |
Avatar |
Link to the users avatar |
LinkDto |
None. |
TimeLine |
Link to the users timeline page. |
LinkDto |
None. |
Profile |
Link to the users profile page. |
LinkDto |
None. |
Tags | Collection of string |
None. |
|
Links |
Collection of links appropriate for the user |
Collection of LinkDto |
None. |
Actions | Collection of LinkDto |
None. |
Response Formats
application/json, text/json, application/senml+json
Sample:
{ "Id": "405f89d6-f0e4-4cbc-b54a-70f55e41b8c2", "Url": "sample string 2", "AccountId": "sample string 3", "Name": "sample string 4", "UserName": "sample string 5", "FullUserName": "sample string 6", "DisplayName": "sample string 7", "Avatar": { "Href": "sample string 1", "Rel": "sample string 2", "Action": "sample string 3" }, "TimeLine": { "Href": "sample string 1", "Rel": "sample string 2", "Action": "sample string 3" }, "Profile": { "Href": "sample string 1", "Rel": "sample string 2", "Action": "sample string 3" }, "Tags": [ "sample string 1", "sample string 2" ], "Links": [ { "Href": "sample string 1", "Rel": "sample string 2", "Action": "sample string 3" }, { "Href": "sample string 1", "Rel": "sample string 2", "Action": "sample string 3" } ], "Actions": [ { "Href": "sample string 1", "Rel": "sample string 2", "Action": "sample string 3" }, { "Href": "sample string 1", "Rel": "sample string 2", "Action": "sample string 3" } ] }
application/xml, text/xml
Sample:
<UserViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AnalysisUK.Tinamous.www.ApiControllers.Models.Shared"> <AccountId>sample string 3</AccountId> <Actions> <LinkViewModel> <Action>sample string 3</Action> <Href>sample string 1</Href> <Rel>sample string 2</Rel> </LinkViewModel> <LinkViewModel> <Action>sample string 3</Action> <Href>sample string 1</Href> <Rel>sample string 2</Rel> </LinkViewModel> </Actions> <Avatar> <Action>sample string 3</Action> <Href>sample string 1</Href> <Rel>sample string 2</Rel> </Avatar> <DisplayName>sample string 7</DisplayName> <FullUserName>sample string 6</FullUserName> <Id>405f89d6-f0e4-4cbc-b54a-70f55e41b8c2</Id> <Links> <LinkViewModel> <Action>sample string 3</Action> <Href>sample string 1</Href> <Rel>sample string 2</Rel> </LinkViewModel> <LinkViewModel> <Action>sample string 3</Action> <Href>sample string 1</Href> <Rel>sample string 2</Rel> </LinkViewModel> </Links> <Name>sample string 4</Name> <Profile> <Action>sample string 3</Action> <Href>sample string 1</Href> <Rel>sample string 2</Rel> </Profile> <Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Tags> <TimeLine> <Action>sample string 3</Action> <Href>sample string 1</Href> <Rel>sample string 2</Rel> </TimeLine> <Url>sample string 2</Url> <UserName>sample string 5</UserName> </UserViewModel>