POST api/newRoom_tbl

Request Information

URI Parameters

None.

Body Parameters

newRoom_tbl
NameDescriptionTypeAdditional information
RoomId

integer

None.

Roomname

string

None.

Request Formats

application/json, text/json

Sample:
{
  "RoomId": 1,
  "Roomname": "sample string 2"
}

text/html

Sample:
{"RoomId":1,"Roomname":"sample string 2"}

application/xml, text/xml

Sample:
<newRoom_tbl xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/webapi.Models">
  <RoomId>1</RoomId>
  <Roomname>sample string 2</Roomname>
</newRoom_tbl>

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

Response Information

Resource Description

newRoom_tbl
NameDescriptionTypeAdditional information
RoomId

integer

None.

Roomname

string

None.

Response Formats

application/json, text/json

Sample:
{
  "RoomId": 1,
  "Roomname": "sample string 2"
}

text/html

Sample:
{"RoomId":1,"Roomname":"sample string 2"}

application/xml, text/xml

Sample:
<newRoom_tbl xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/webapi.Models">
  <RoomId>1</RoomId>
  <Roomname>sample string 2</Roomname>
</newRoom_tbl>