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

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

integer

Required

Body Parameters

None.

Response Information

Resource Description

ServiceResultOfUserObjectDTO
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessage

string

None.

SuccessMessage

string

None.

Result

UserObjectDTO

None.

StatusCode

HttpStatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ErrorMessage": "sample string 2",
  "SuccessMessage": "sample string 3",
  "Result": {
    "Id": 1,
    "FirstName": "sample string 2",
    "LastName": "sample string 3",
    "Email": "sample string 4",
    "PrefferedAfdeling": 0,
    "UserRole": "sample string 5",
    "CurrentAfdeling": 0,
    "LatestActivity": "2019-10-15T05:49:12.2194722+02:00",
    "Status": 0,
    "FullName": "sample string 2 sample string 3"
  },
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<ServiceResultOfUserObjectDTO4o5MNk8u xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/Model.DTOClasses">
    <d2p1:CurrentAfdeling>Håndbold</d2p1:CurrentAfdeling>
    <d2p1:Email>sample string 4</d2p1:Email>
    <d2p1:FirstName>sample string 2</d2p1:FirstName>
    <d2p1:Id>1</d2p1:Id>
    <d2p1:LastName>sample string 3</d2p1:LastName>
    <d2p1:LatestActivity>2019-10-15T05:49:12.2194722+02:00</d2p1:LatestActivity>
    <d2p1:PrefferedAfdeling>Håndbold</d2p1:PrefferedAfdeling>
    <d2p1:Status>Aktiv</d2p1:Status>
    <d2p1:UserRole>sample string 5</d2p1:UserRole>
  </Result>
  <StatusCode>Continue</StatusCode>
  <Success>true</Success>
  <SuccessMessage>sample string 3</SuccessMessage>
</ServiceResultOfUserObjectDTO4o5MNk8u>