POST api/auth/login

Authenticates a user with email and OTP sign-in code.

Request Information

URI Parameters

None.

Body Parameters

LoginRequestDTO
NameDescriptionTypeAdditional information
Email

string

Required

Code

string

Required

Matching regular expression pattern: ^\d{4,10}$

DeviceIdentifier

string

Required

Max length: 128

LegalWebsiteId

byte

None.

AcceptedTermsAndConditions

boolean

None.

AcceptedTermsOfUse

boolean

None.

AcceptedPrivacyPolicy

boolean

None.

LegalDocumentsAvailableAt

LegalDocumentsAvailableAtValue

None.

Request Formats

application/json, text/json

Sample:
{
  "email": "sample string 1",
  "code": "sample string 2",
  "deviceIdentifier": "sample string 3",
  "legalWebsiteId": 64,
  "acceptedTermsAndConditions": true,
  "acceptedTermsOfUse": true,
  "acceptedPrivacyPolicy": true,
  "legalDocumentsAvailableAt": {}
}

application/xml, text/xml

Sample:
<LoginRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CruiseParking.Website.API.Models">
  <AcceptedPrivacyPolicy>true</AcceptedPrivacyPolicy>
  <AcceptedTermsAndConditions>true</AcceptedTermsAndConditions>
  <AcceptedTermsOfUse>true</AcceptedTermsOfUse>
  <Code>sample string 2</Code>
  <DeviceIdentifier>sample string 3</DeviceIdentifier>
  <Email>sample string 1</Email>
  <LegalDocumentsAvailableAt />
  <LegalWebsiteId>64</LegalWebsiteId>
</LoginRequestDTO>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.