POST api/GuestHouses
Request Information
URI Parameters
None.
Body Parameters
GuestHouseVMName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
GuestHouseCity | string |
None. |
|
CostPerRoom | decimal number |
None. |
|
RoomsCount | integer |
None. |
|
GuestHouseManagerName | string |
None. |
|
GuestHouseManagerNumber | string |
None. |
|
Address | string |
None. |
|
Description | string |
None. |
|
GuestHouseImages | Collection of GuestHouseImage |
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:
{ "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", "GuestHouseImages": [ { "Url": "sample string 1", "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": [ { "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-03T00:04:24.6526439+05:30", "CheckOutDate": "2024-10-03T00:04:24.6526439+05:30", "GuestHouseId": 1, "Id": 12, "IsActive": true, "CreatedDate": "2024-10-03T00:04:24.6526439+05:30", "ModifiedDate": "2024-10-03T00:04:24.6526439+05:30", "CreatedById": "sample string 14", "ModifiedById": "sample string 15" }, { "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-03T00:04:24.6526439+05:30", "CheckOutDate": "2024-10-03T00:04:24.6526439+05:30", "GuestHouseId": 1, "Id": 12, "IsActive": true, "CreatedDate": "2024-10-03T00:04:24.6526439+05:30", "ModifiedDate": "2024-10-03T00:04:24.6526439+05:30", "CreatedById": "sample string 14", "ModifiedById": "sample string 15" } ], "GuestHouseImages": [], "Id": 9, "IsActive": true, "CreatedDate": "2024-10-03T00:04:24.6526439+05:30", "ModifiedDate": "2024-10-03T00:04:24.6526439+05:30", "CreatedById": "sample string 11", "ModifiedById": "sample string 12" }, "Id": 2, "IsActive": true, "CreatedDate": "2024-10-03T00:04:24.6526439+05:30", "ModifiedDate": "2024-10-03T00:04:24.6526439+05:30", "CreatedById": "sample string 4", "ModifiedById": "sample string 5" }, { "Url": "sample string 1", "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": [ { "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-03T00:04:24.6526439+05:30", "CheckOutDate": "2024-10-03T00:04:24.6526439+05:30", "GuestHouseId": 1, "Id": 12, "IsActive": true, "CreatedDate": "2024-10-03T00:04:24.6526439+05:30", "ModifiedDate": "2024-10-03T00:04:24.6526439+05:30", "CreatedById": "sample string 14", "ModifiedById": "sample string 15" }, { "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-03T00:04:24.6526439+05:30", "CheckOutDate": "2024-10-03T00:04:24.6526439+05:30", "GuestHouseId": 1, "Id": 12, "IsActive": true, "CreatedDate": "2024-10-03T00:04:24.6526439+05:30", "ModifiedDate": "2024-10-03T00:04:24.6526439+05:30", "CreatedById": "sample string 14", "ModifiedById": "sample string 15" } ], "GuestHouseImages": [], "Id": 9, "IsActive": true, "CreatedDate": "2024-10-03T00:04:24.6526439+05:30", "ModifiedDate": "2024-10-03T00:04:24.6526439+05:30", "CreatedById": "sample string 11", "ModifiedById": "sample string 12" }, "Id": 2, "IsActive": true, "CreatedDate": "2024-10-03T00:04:24.6526439+05:30", "ModifiedDate": "2024-10-03T00:04:24.6526439+05:30", "CreatedById": "sample string 4", "ModifiedById": "sample string 5" } ], "Id": 9, "IsActive": true, "CreatedDate": "2024-10-03T00:04:24.6526439+05:30", "ModifiedDate": "2024-10-03T00:04:24.6526439+05:30", "CreatedById": "sample string 11", "ModifiedById": "sample string 12" }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
GuestHouseName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
GuestHouseCity | string |
None. |
|
CostPerRoom | decimal number |
None. |
|
RoomsCount | integer |
None. |
|
GuestHouseManagerName | string |
None. |
|
GuestHouseManagerNumber | string |
None. |
|
Address | string |
None. |
|
Description | string |
None. |
|
Bookings | Collection of Booking |
None. |
|
GuestHouseImages | Collection of GuestHouseImage |
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:
{ "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": [ { "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-03T00:04:24.6838863+05:30", "CheckOutDate": "2024-10-03T00:04:24.6838863+05:30", "GuestHouseId": 1, "Id": 12, "IsActive": true, "CreatedDate": "2024-10-03T00:04:24.6838863+05:30", "ModifiedDate": "2024-10-03T00:04:24.6838863+05:30", "CreatedById": "sample string 14", "ModifiedById": "sample string 15" }, { "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-03T00:04:24.6838863+05:30", "CheckOutDate": "2024-10-03T00:04:24.6838863+05:30", "GuestHouseId": 1, "Id": 12, "IsActive": true, "CreatedDate": "2024-10-03T00:04:24.6838863+05:30", "ModifiedDate": "2024-10-03T00:04:24.6838863+05:30", "CreatedById": "sample string 14", "ModifiedById": "sample string 15" } ], "GuestHouseImages": [ { "Url": "sample string 1", "GuestHouseId": 1, "Id": 2, "IsActive": true, "CreatedDate": "2024-10-03T00:04:24.6838863+05:30", "ModifiedDate": "2024-10-03T00:04:24.6838863+05:30", "CreatedById": "sample string 4", "ModifiedById": "sample string 5" }, { "Url": "sample string 1", "GuestHouseId": 1, "Id": 2, "IsActive": true, "CreatedDate": "2024-10-03T00:04:24.6838863+05:30", "ModifiedDate": "2024-10-03T00:04:24.6838863+05:30", "CreatedById": "sample string 4", "ModifiedById": "sample string 5" } ], "Id": 9, "IsActive": true, "CreatedDate": "2024-10-03T00:04:24.6838863+05:30", "ModifiedDate": "2024-10-03T00:04:24.6838863+05:30", "CreatedById": "sample string 11", "ModifiedById": "sample string 12" }