POST API/RoomTypes/RoomtypesAdd

Request Information

URI Parameters

None.

Body Parameters

Roomtypes
NameDescriptionTypeAdditional information
Roomtype

string

None.

Noofrooms

integer

None.

Maxroom

integer

None.

Extrabed

integer

None.

RackSingle

decimal number

None.

RackDouble

decimal number

None.

RackTriple

decimal number

None.

RackQuadruple

decimal number

None.

Roomimage

string

None.

Amenities

string

None.

UserId

integer

None.

HotelId

integer

None.

RoomId

integer

None.

Maxchild

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Roomtype": "sample string 1",
  "Noofrooms": 2,
  "Maxroom": 3,
  "Extrabed": 4,
  "RackSingle": 1.0,
  "RackDouble": 1.0,
  "RackTriple": 1.0,
  "RackQuadruple": 1.0,
  "Roomimage": "sample string 5",
  "Amenities": "sample string 6",
  "UserId": 7,
  "HotelId": 8,
  "RoomId": 9,
  "Maxchild": 1
}

application/xml, text/xml

Sample:
<Roomtypes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HMSApi.Models">
  <Amenities>sample string 6</Amenities>
  <Extrabed>4</Extrabed>
  <HotelId>8</HotelId>
  <Maxchild>1</Maxchild>
  <Maxroom>3</Maxroom>
  <Noofrooms>2</Noofrooms>
  <RackDouble>1</RackDouble>
  <RackQuadruple>1</RackQuadruple>
  <RackSingle>1</RackSingle>
  <RackTriple>1</RackTriple>
  <RoomId>9</RoomId>
  <Roomimage>sample string 5</Roomimage>
  <Roomtype>sample string 1</Roomtype>
  <UserId>7</UserId>
</Roomtypes>

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.