POST api/Bookings

Request Information

URI Parameters

None.

Body Parameters

Booking
NameDescriptionTypeAdditional information
FullName

string

None.

PFNo

string

None.

GuestHouseCity

string

None.

Circle

string

None.

Email

string

None.

MobileNumber

string

None.

Rooms

integer

None.

Adults

integer

None.

Kids

integer

None.

CheckInDate

date

None.

CheckOutDate

date

None.

GuestHouseId

integer

None.

GuestHouse

GuestHouse

None.

Id

integer

None.

IsActive

boolean

None.

CreatedDate

date

None.

ModifiedDate

date

None.

CreatedById

string

None.

ModifiedById

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FullName": "sample string 1",
  "PFNo": "sample string 2",
  "GuestHouseCity": "sample string 3",
  "Circle": "sample string 4",
  "Email": "sample string 5",
  "MobileNumber": "sample string 6",
  "Rooms": 7,
  "Adults": 8,
  "Kids": 9,
  "CheckInDate": "2024-10-03T15:35:09.1806639+05:30",
  "CheckOutDate": "2024-10-03T15:35:09.1806639+05:30",
  "GuestHouseId": 1,
  "GuestHouse": {
    "Name": "sample string 1",
    "GuestHouseCity": "sample string 2",
    "CostPerRoom": 3.1,
    "RoomsCount": 4,
    "GuestHouseManagerName": "sample string 5",
    "GuestHouseManagerNumber": "sample string 6",
    "Address": "sample string 7",
    "Description": "sample string 8",
    "Bookings": [],
    "GuestHouseImages": [
      {
        "Url": "sample string 1",
        "GuestHouseId": 1,
        "Id": 2,
        "IsActive": true,
        "CreatedDate": "2024-10-03T15:35:09.1806639+05:30",
        "ModifiedDate": "2024-10-03T15:35:09.1806639+05:30",
        "CreatedById": "sample string 4",
        "ModifiedById": "sample string 5"
      },
      {
        "Url": "sample string 1",
        "GuestHouseId": 1,
        "Id": 2,
        "IsActive": true,
        "CreatedDate": "2024-10-03T15:35:09.1806639+05:30",
        "ModifiedDate": "2024-10-03T15:35:09.1806639+05:30",
        "CreatedById": "sample string 4",
        "ModifiedById": "sample string 5"
      }
    ],
    "Id": 9,
    "IsActive": true,
    "CreatedDate": "2024-10-03T15:35:09.1806639+05:30",
    "ModifiedDate": "2024-10-03T15:35:09.1806639+05:30",
    "CreatedById": "sample string 11",
    "ModifiedById": "sample string 12"
  },
  "Id": 12,
  "IsActive": true,
  "CreatedDate": "2024-10-03T15:35:09.1806639+05:30",
  "ModifiedDate": "2024-10-03T15:35:09.1806639+05:30",
  "CreatedById": "sample string 14",
  "ModifiedById": "sample string 15"
}

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

Response Information

Resource Description

Booking
NameDescriptionTypeAdditional information
FullName

string

None.

PFNo

string

None.

GuestHouseCity

string

None.

Circle

string

None.

Email

string

None.

MobileNumber

string

None.

Rooms

integer

None.

Adults

integer

None.

Kids

integer

None.

CheckInDate

date

None.

CheckOutDate

date

None.

GuestHouseId

integer

None.

GuestHouse

GuestHouse

None.

Id

integer

None.

IsActive

boolean

None.

CreatedDate

date

None.

ModifiedDate

date

None.

CreatedById

string

None.

ModifiedById

string

None.

Response Formats

application/json, text/json

Sample:
{
  "FullName": "sample string 1",
  "PFNo": "sample string 2",
  "GuestHouseCity": "sample string 3",
  "Circle": "sample string 4",
  "Email": "sample string 5",
  "MobileNumber": "sample string 6",
  "Rooms": 7,
  "Adults": 8,
  "Kids": 9,
  "CheckInDate": "2024-10-03T15:35:09.1806639+05:30",
  "CheckOutDate": "2024-10-03T15:35:09.1806639+05:30",
  "GuestHouseId": 1,
  "GuestHouse": {
    "Name": "sample string 1",
    "GuestHouseCity": "sample string 2",
    "CostPerRoom": 3.1,
    "RoomsCount": 4,
    "GuestHouseManagerName": "sample string 5",
    "GuestHouseManagerNumber": "sample string 6",
    "Address": "sample string 7",
    "Description": "sample string 8",
    "Bookings": [],
    "GuestHouseImages": [
      {
        "Url": "sample string 1",
        "GuestHouseId": 1,
        "Id": 2,
        "IsActive": true,
        "CreatedDate": "2024-10-03T15:35:09.1806639+05:30",
        "ModifiedDate": "2024-10-03T15:35:09.1806639+05:30",
        "CreatedById": "sample string 4",
        "ModifiedById": "sample string 5"
      },
      {
        "Url": "sample string 1",
        "GuestHouseId": 1,
        "Id": 2,
        "IsActive": true,
        "CreatedDate": "2024-10-03T15:35:09.1806639+05:30",
        "ModifiedDate": "2024-10-03T15:35:09.1806639+05:30",
        "CreatedById": "sample string 4",
        "ModifiedById": "sample string 5"
      }
    ],
    "Id": 9,
    "IsActive": true,
    "CreatedDate": "2024-10-03T15:35:09.1806639+05:30",
    "ModifiedDate": "2024-10-03T15:35:09.1806639+05:30",
    "CreatedById": "sample string 11",
    "ModifiedById": "sample string 12"
  },
  "Id": 12,
  "IsActive": true,
  "CreatedDate": "2024-10-03T15:35:09.1806639+05:30",
  "ModifiedDate": "2024-10-03T15:35:09.1806639+05:30",
  "CreatedById": "sample string 14",
  "ModifiedById": "sample string 15"
}