POST api/Account/Login

Request Information

URI Parameters

None.

Body Parameters

LoginModel
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:
<LoginModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ISI.Cloud.Common">
  <Password>sample string 2</Password>
  <UserName>sample string 1</UserName>
</LoginModel>

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 'LoginModel'.

Response Information

Resource Description

UserInfoViewModel
NameDescriptionTypeAdditional information
UserName

string

None.

FirstName

string

None.

LastName

string

None.

Email

string

None.

HasRegistered

boolean

None.

Role

Collection of string

None.

UserID

integer

None.

AccessToken

string

None.

Response Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "Email": "sample string 4",
  "HasRegistered": true,
  "Role": [
    "sample string 1",
    "sample string 2"
  ],
  "UserID": 6,
  "AccessToken": "sample string 7"
}

application/xml, text/xml

Sample:
<UserInfoViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ISI.Cloud.Common">
  <AccessToken>sample string 7</AccessToken>
  <Email>sample string 4</Email>
  <FirstName>sample string 2</FirstName>
  <HasRegistered>true</HasRegistered>
  <LastName>sample string 3</LastName>
  <Role xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Role>
  <UserID>6</UserID>
  <UserName>sample string 1</UserName>
</UserInfoViewModel>