DELETE api/hotels/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | decimal number |
Required |
Body Parameters
None.
Response Information
Resource Description
hotels1| Name | Description | Type | Additional information |
|---|---|---|---|
| id_hotel | decimal number |
None. |
|
| id_ht | decimal number |
None. |
|
| id_degree | integer |
None. |
|
| manager | string |
None. |
|
| address | string |
None. |
|
| phone | string |
None. |
|
| cellphone | string |
None. |
|
| persian_name | string |
None. |
|
| dsc | string |
None. |
|
| id_town | integer |
None. |
|
| ted_room | integer |
None. |
|
| capacity | integer |
None. |
|
| X_crdnt | string |
None. |
|
| Y_crdnt | string |
None. |
|
| activate | boolean |
None. |
|
| ready | boolean |
None. |
|
| key_ | string |
None. |
|
| guest_num | integer |
None. |
|
| room_full | integer |
None. |
|
| id_stnd | integer |
None. |
|
| id_operator | integer |
None. |
|
| date_end | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"id_hotel": 1.0,
"id_ht": 1.0,
"id_degree": 1,
"manager": "sample string 2",
"address": "sample string 3",
"phone": "sample string 4",
"cellphone": "sample string 5",
"persian_name": "sample string 6",
"dsc": "sample string 7",
"id_town": 1,
"ted_room": 1,
"capacity": 1,
"X_crdnt": "sample string 8",
"Y_crdnt": "sample string 9",
"activate": true,
"ready": true,
"key_": "sample string 10",
"guest_num": 1,
"room_full": 1,
"id_stnd": 1,
"id_operator": 1,
"date_end": "sample string 11"
}
text/html
Sample:
{"id_hotel":1.0,"id_ht":1.0,"id_degree":1,"manager":"sample string 2","address":"sample string 3","phone":"sample string 4","cellphone":"sample string 5","persian_name":"sample string 6","dsc":"sample string 7","id_town":1,"ted_room":1,"capacity":1,"X_crdnt":"sample string 8","Y_crdnt":"sample string 9","activate":true,"ready":true,"key_":"sample string 10","guest_num":1,"room_full":1,"id_stnd":1,"id_operator":1,"date_end":"sample string 11"}
application/xml, text/xml
Sample:
<hotels1 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/setadEskan"> <X_crdnt>sample string 8</X_crdnt> <Y_crdnt>sample string 9</Y_crdnt> <activate>true</activate> <address>sample string 3</address> <capacity>1</capacity> <cellphone>sample string 5</cellphone> <date_end>sample string 11</date_end> <dsc>sample string 7</dsc> <guest_num>1</guest_num> <id_degree>1</id_degree> <id_hotel>1</id_hotel> <id_ht>1</id_ht> <id_operator>1</id_operator> <id_stnd>1</id_stnd> <id_town>1</id_town> <key_>sample string 10</key_> <manager>sample string 2</manager> <persian_name>sample string 6</persian_name> <phone>sample string 4</phone> <ready>true</ready> <room_full>1</room_full> <ted_room>1</ted_room> </hotels1>