POST api/Login/GenerateCode

Request Information

URI Parameters

None.

Body Parameters

LoginModel
NameDescriptionTypeAdditional information
Email

string

None.

Password

string

None.

Code

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "Password": "sample string 2",
  "Code": "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/SAL.API.Repository.Models">
  <Code>sample string 3</Code>
  <Email>sample string 1</Email>
  <Password>sample string 2</Password>
</LoginModel>

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

Response Information

Resource Description

SALError
NameDescriptionTypeAdditional information
code

integer

None.

message

string

None.

incidentid

string

None.

ldv_awbnumberexists

boolean

None.

objectid

string

None.

casenumber

string

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "message": "sample string 2",
  "incidentid": "sample string 3",
  "ldv_awbnumberexists": true,
  "objectid": "sample string 5",
  "casenumber": "sample string 6"
}

application/xml, text/xml

Sample:
<SALError xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SAL.API.Repository.Models">
  <CaseNumber>sample string 6</CaseNumber>
  <Code>1</Code>
  <IncidentId>sample string 3</IncidentId>
  <LdvAwbNumberExists>true</LdvAwbNumberExists>
  <Message>sample string 2</Message>
  <ObjectId>sample string 5</ObjectId>
</SALError>