GET api/RoomType/{id}
Get Room type by matching the provided id
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
RoomTypeName | Description | Type | Additional information |
---|---|---|---|
RoomTypeId | integer |
None. |
|
RoomTypeName | string |
None. |
|
Occupancy | integer |
None. |
|
CreatedDateTime | date |
None. |
|
LastUpdatedDateTime | date |
None. |
|
CreatedBy | integer |
None. |
|
LastModifiedBy | integer |
None. |
|
IsDeleted | boolean |
None. |
|
IsActive | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "RoomTypeId": 1, "RoomTypeName": "sample string 2", "Occupancy": 3, "CreatedDateTime": "2025-07-18T15:50:15.0556972+00:00", "LastUpdatedDateTime": "2025-07-18T15:50:15.0556972+00:00", "CreatedBy": 1, "LastModifiedBy": 1, "IsDeleted": true, "IsActive": true }
application/xml, text/xml
Sample:
<RoomType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClassLibraryITTF1"> <CreatedBy>1</CreatedBy> <CreatedDateTime>2025-07-18T15:50:15.0556972+00:00</CreatedDateTime> <IsActive>true</IsActive> <IsDeleted>true</IsDeleted> <LastModifiedBy>1</LastModifiedBy> <LastUpdatedDateTime>2025-07-18T15:50:15.0556972+00:00</LastUpdatedDateTime> <Occupancy>3</Occupancy> <RoomTypeId>1</RoomTypeId> <RoomTypeName>sample string 2</RoomTypeName> </RoomType>