POST api/ng/account/login

Request Information

URI Parameters

None.

Body Parameters

UserLoginModel
NameDescriptionTypeAdditional information
Email

string

None.

Password

string

None.

RememberMe

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "Password": "sample string 2",
  "RememberMe": true
}

application/xml, text/xml

Sample:
<UserLoginModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models.Angular">
  <Email>sample string 1</Email>
  <Password>sample string 2</Password>
  <RememberMe>true</RememberMe>
</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

UserAuthResultModel
NameDescriptionTypeAdditional information
IsAuthenticated

boolean

None.

IsAdmin

boolean

None.

Id

string

None.

Email

string

None.

FirstName

string

None.

LastName

string

None.

PictureUrl

string

None.

ErrorType

UserAuthError

None.

token

string

None.

Response Formats

application/json, text/json

Sample:
{
  "IsAuthenticated": true,
  "IsAdmin": true,
  "Id": "sample string 3",
  "Email": "sample string 4",
  "FirstName": "sample string 5",
  "LastName": "sample string 6",
  "PictureUrl": "sample string 7",
  "ErrorType": 0,
  "token": "sample string 8"
}

application/xml, text/xml

Sample:
<UserAuthResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SoulSeasons2017.Models.Angular">
  <Email>sample string 4</Email>
  <ErrorType>NoError</ErrorType>
  <FirstName>sample string 5</FirstName>
  <Id>sample string 3</Id>
  <IsAdmin>true</IsAdmin>
  <IsAuthenticated>true</IsAuthenticated>
  <LastName>sample string 6</LastName>
  <PictureUrl>sample string 7</PictureUrl>
  <token>sample string 8</token>
</UserAuthResultModel>