POST api/FlightBooking/AuthenticateUser

Request Information

URI Parameters

None.

Body Parameters

LoginDTO
NameDescriptionTypeAdditional information
userid

integer

None.

username

string

None.

password

string

None.

isfirstlogin

boolean

None.

modifiedby

string

None.

modifydate

date

None.

isactive

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "userid": 1,
  "username": "sample string 2",
  "password": "sample string 3",
  "isfirstlogin": true,
  "modifiedby": "sample string 4",
  "modifydate": "2021-08-03T12:12:38.2599784+05:30",
  "isactive": true
}

application/xml, text/xml

Sample:
<LoginDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FlightDisruptionBAL.DTO">
  <isactive>true</isactive>
  <isfirstlogin>true</isfirstlogin>
  <modifiedby>sample string 4</modifiedby>
  <modifydate>2021-08-03T12:12:38.2599784+05:30</modifydate>
  <password>sample string 3</password>
  <userid>1</userid>
  <username>sample string 2</username>
</LoginDTO>

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

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>