POST api/RoomTypes/CRUD
Add/Update/Delete Room Types
Request Information
URI Parameters
None.
Body Parameters
String Array of Room Types Names And Information(Mandatory)
Collection of RoomTypeInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| RoomTypeId | integer |
None. |
|
| RoomTypeName | string |
None. |
|
| Occupancy | integer |
None. |
|
| IsActive | boolean |
None. |
|
| Deleted | integer |
None. |
Request Formats
application/json, text/json
Sample:
[
{
"RoomTypeId": 1,
"RoomTypeName": "sample string 2",
"Occupancy": 3,
"IsActive": true,
"Deleted": 1
},
{
"RoomTypeId": 1,
"RoomTypeName": "sample string 2",
"Occupancy": 3,
"IsActive": true,
"Deleted": 1
}
]
application/xml, text/xml
Sample:
<ArrayOfRoomTypeInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClassLibraryITTF1">
<RoomTypeInfo>
<Deleted>1</Deleted>
<IsActive>true</IsActive>
<Occupancy>3</Occupancy>
<RoomTypeId>1</RoomTypeId>
<RoomTypeName>sample string 2</RoomTypeName>
</RoomTypeInfo>
<RoomTypeInfo>
<Deleted>1</Deleted>
<IsActive>true</IsActive>
<Occupancy>3</Occupancy>
<RoomTypeId>1</RoomTypeId>
<RoomTypeName>sample string 2</RoomTypeName>
</RoomTypeInfo>
</ArrayOfRoomTypeInfo>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>