POST api/Flight/Authenticate

Authenticate

Request Information

URI Parameters

None.

Body Parameters

LogonRequest
NameDescriptionTypeAdditional information
UserName

string

Required

Password

string

Required

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<LogonRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <UserName>sample string 1</UserName>
  <Password>sample string 2</Password>
</LogonRequest>

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

Response Information

Resource Description

LogonResponse
NameDescriptionTypeAdditional information
SessionID

string

None.

Error

Error

None.

Status

string

None.

DateTime

string

None.

Response Formats

application/json, text/json

Sample:
{
  "SessionID": "sample string 1",
  "Error": {
    "ErrorCode": "sample string 1",
    "Description": "sample string 2",
    "Category": "sample string 3"
  },
  "Status": "sample string 2",
  "DateTime": "sample string 3"
}

application/xml, text/xml

Sample:
<LogonResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <SessionID>sample string 1</SessionID>
  <Error>
    <ErrorCode>sample string 1</ErrorCode>
    <Description>sample string 2</Description>
    <Category>sample string 3</Category>
  </Error>
  <Status>sample string 2</Status>
  <DateTime>sample string 3</DateTime>
</LogonResponse>