POST apis/1/user/login

Request Information

URI Parameters

None.

Body Parameters

LoginRequest
NameDescriptionTypeAdditional information
Mobile

string

None.

DeviceToken

string

None.

DeviceType

string

None.

DeviceId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Mobile": "sample string 1",
  "DeviceToken": "sample string 2",
  "DeviceType": "sample string 3",
  "DeviceId": "sample string 4"
}

application/xml, text/xml

Sample:
<LoginRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AtYourServiceModel.Models">
  <DeviceId>sample string 4</DeviceId>
  <DeviceToken>sample string 2</DeviceToken>
  <DeviceType>sample string 3</DeviceType>
  <Mobile>sample string 1</Mobile>
</LoginRequest>

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

Response Information

Resource Description

LoginResponse
NameDescriptionTypeAdditional information
ReturnCode

string

None.

ReturnMessage

string

None.

SessionToken

string

None.

CustomerName

string

None.

Mobile

string

None.

Email

string

None.

UserType

string

None.

UserId

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ReturnCode": "sample string 1",
  "ReturnMessage": "sample string 2",
  "SessionToken": "sample string 3",
  "CustomerName": "sample string 4",
  "Mobile": "sample string 5",
  "Email": "sample string 6",
  "UserType": "sample string 7",
  "UserId": "sample string 8"
}

application/xml, text/xml

Sample:
<LoginResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AtYourServiceModel.Models">
  <CustomerName>sample string 4</CustomerName>
  <Email>sample string 6</Email>
  <Mobile>sample string 5</Mobile>
  <ReturnCode>sample string 1</ReturnCode>
  <ReturnMessage>sample string 2</ReturnMessage>
  <SessionToken>sample string 3</SessionToken>
  <UserId>sample string 8</UserId>
  <UserType>sample string 7</UserType>
</LoginResponse>