GET api/hotels?username={username}&password={password}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| username | string |
Required |
|
| password | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of View_eskan_det| 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. |
|
| id_tu | decimal number |
None. |
|
| type_unit | string |
None. |
|
| empty_cap | integer |
None. |
|
| township | string |
None. |
|
| empty_room | integer |
None. |
|
| guest_num | integer |
None. |
|
| room_full | integer |
None. |
|
| id_gt | integer |
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,
"id_tu": 1.0,
"type_unit": "sample string 10",
"empty_cap": 1,
"township": "sample string 11",
"empty_room": 1,
"guest_num": 1,
"room_full": 1,
"id_gt": 1
},
{
"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,
"id_tu": 1.0,
"type_unit": "sample string 10",
"empty_cap": 1,
"township": "sample string 11",
"empty_room": 1,
"guest_num": 1,
"room_full": 1,
"id_gt": 1
}
]
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,"id_tu":1.0,"type_unit":"sample string 10","empty_cap":1,"township":"sample string 11","empty_room":1,"guest_num":1,"room_full":1,"id_gt":1},{"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,"id_tu":1.0,"type_unit":"sample string 10","empty_cap":1,"township":"sample string 11","empty_room":1,"guest_num":1,"room_full":1,"id_gt":1}]
application/xml, text/xml
Sample:
<ArrayOfView_eskan_det xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/setadEskan">
<View_eskan_det>
<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>
<dsc>sample string 7</dsc>
<empty_cap>1</empty_cap>
<empty_room>1</empty_room>
<guest_num>1</guest_num>
<id_degree>1</id_degree>
<id_gt>1</id_gt>
<id_hotel>1</id_hotel>
<id_ht>1</id_ht>
<id_town>1</id_town>
<id_tu>1</id_tu>
<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>
<township>sample string 11</township>
<type_unit>sample string 10</type_unit>
</View_eskan_det>
<View_eskan_det>
<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>
<dsc>sample string 7</dsc>
<empty_cap>1</empty_cap>
<empty_room>1</empty_room>
<guest_num>1</guest_num>
<id_degree>1</id_degree>
<id_gt>1</id_gt>
<id_hotel>1</id_hotel>
<id_ht>1</id_ht>
<id_town>1</id_town>
<id_tu>1</id_tu>
<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>
<township>sample string 11</township>
<type_unit>sample string 10</type_unit>
</View_eskan_det>
</ArrayOfView_eskan_det>