POST api/Logon

Request Information

URI Parameters

None.

Body Parameters

UserLoginModel
NameDescriptionTypeAdditional information
username

string

None.

password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "username": "sample string 1",
  "password": "sample string 2"
}

application/xml, text/xml

Sample:
<UserLoginModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <password>sample string 2</password>
  <username>sample string 1</username>
</UserLoginModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserLoginModel'.

Response Information

Resource Description

EmployeeProfile
NameDescriptionTypeAdditional information
emp_id

integer

None.

full_name

string

None.

short_name

string

None.

user_name

string

None.

picture

string

None.

job_title

string

None.

manager

boolean

None.

access_token

string

None.

Response Formats

application/json, text/json

Sample:
{
  "emp_id": 1,
  "full_name": "sample string 2",
  "short_name": "sample string 3",
  "user_name": "sample string 4",
  "picture": "sample string 5",
  "job_title": "sample string 6",
  "manager": true,
  "access_token": "sample string 8"
}

application/xml, text/xml

Sample:
<EmployeeProfile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <access_token>sample string 8</access_token>
  <emp_id>1</emp_id>
  <full_name>sample string 2</full_name>
  <job_title>sample string 6</job_title>
  <manager>true</manager>
  <picture>sample string 5</picture>
  <short_name>sample string 3</short_name>
  <user_name>sample string 4</user_name>
</EmployeeProfile>