POST api/Login

Request Information

URI Parameters

None.

Body Parameters

LoginModel
NameDescriptionTypeAdditional information
UserName

string

None.

Password

string

None.

UserType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Password": "sample string 2",
  "UserType": "sample string 3"
}

application/xml, text/xml

Sample:
<LoginModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERPTestAPI.Models">
  <Password>sample string 2</Password>
  <UserName>sample string 1</UserName>
  <UserType>sample string 3</UserType>
</LoginModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

LoginReturnModel
NameDescriptionTypeAdditional information
status

boolean

None.

msg

string

None.

token

string

None.

Response Formats

application/json, text/json

Sample:
{
  "status": true,
  "msg": "sample string 2",
  "token": "sample string 3"
}

application/xml, text/xml

Sample:
<LoginReturnModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERPTestAPI.Models">
  <msg>sample string 2</msg>
  <status>true</status>
  <token>sample string 3</token>
</LoginReturnModel>