POST api/VLI/BookSeats

Request Information

URI Parameters

None.

Body Parameters

BookSeatDTO
NameDescriptionTypeAdditional information
username

string

None.

password

string

None.

refNo

string

None.

schedBusID

integer

None.

adult

integer

None.

PassengerList

Collection of PassengersInfo

None.

Request Formats

application/json, text/json

Sample:
{
  "username": "sample string 1",
  "password": "sample string 2",
  "refNo": "sample string 3",
  "schedBusID": 4,
  "adult": 5,
  "PassengerList": [
    {
      "firstName": "sample string 1",
      "lastName": "sample string 2",
      "middleName": "sample string 3",
      "email": "sample string 4",
      "mobileNo": "sample string 5",
      "city": "sample string 6",
      "SeatNo": 7
    },
    {
      "firstName": "sample string 1",
      "lastName": "sample string 2",
      "middleName": "sample string 3",
      "email": "sample string 4",
      "mobileNo": "sample string 5",
      "city": "sample string 6",
      "SeatNo": 7
    }
  ]
}

application/xml, text/xml

Sample:
<BookSeatDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VLIServices.Models.DTO">
  <PassengerList>
    <PassengersInfo>
      <SeatNo>7</SeatNo>
      <city>sample string 6</city>
      <email>sample string 4</email>
      <firstName>sample string 1</firstName>
      <lastName>sample string 2</lastName>
      <middleName>sample string 3</middleName>
      <mobileNo>sample string 5</mobileNo>
    </PassengersInfo>
    <PassengersInfo>
      <SeatNo>7</SeatNo>
      <city>sample string 6</city>
      <email>sample string 4</email>
      <firstName>sample string 1</firstName>
      <lastName>sample string 2</lastName>
      <middleName>sample string 3</middleName>
      <mobileNo>sample string 5</mobileNo>
    </PassengersInfo>
  </PassengerList>
  <adult>5</adult>
  <password>sample string 2</password>
  <refNo>sample string 3</refNo>
  <schedBusID>4</schedBusID>
  <username>sample string 1</username>
</BookSeatDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.