POST Authentication/LoginSendOtp

Request Information

URI Parameters

None.

Body Parameters

LoginRequest
NameDescriptionTypeAdditional information
LoginType

integer

None.

PhonePrefix

string

None.

Phone

string

None.

UniqueID

string

None.

Password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "LoginType": 1,
  "PhonePrefix": "sample string 2",
  "Phone": "sample string 3",
  "UniqueID": "sample string 4",
  "Password": "sample string 5"
}

application/xml, text/xml

Sample:
<AuthenticationViewModel.LoginRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HizirYetisAPI.ViewModels">
  <LoginType>1</LoginType>
  <Password>sample string 5</Password>
  <Phone>sample string 3</Phone>
  <PhonePrefix>sample string 2</PhonePrefix>
  <UniqueID>sample string 4</UniqueID>
</AuthenticationViewModel.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

LoginOtpResponse
NameDescriptionTypeAdditional information
UserID

integer

None.

Success

boolean

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "Success": true,
  "Message": "sample string 3"
}

application/xml, text/xml

Sample:
<AuthenticationViewModel.LoginOtpResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HizirYetisAPI.ViewModels">
  <Message>sample string 3</Message>
  <Success>true</Success>
  <UserID>1</UserID>
</AuthenticationViewModel.LoginOtpResponse>