Changes for page 2. Get Hotels

Last modified by Giorgi Mdivnishvili on 2024/02/29 09:39

From version 7.1
edited by Giorgi Mdivnishvili
on 2023/12/04 11:42
Change comment: There is no comment for this version
To version 15.1
edited by Giorgi Mdivnishvili
on 2024/02/27 22:03
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Get Hotels
1 +2. Get Hotels
Content
... ... @@ -2,9 +2,9 @@
2 2  {{toc/}}
3 3  {{/box}}
4 4  
5 -= endpoint - Get Hotels =
5 += Method - Get Hotels =
6 6  
7 -[[https:~~/~~/testapi.rustaronline.com/api/Hotels/GetHotels>>https://testapi.rustaronline.com/api/Hotels/GetHotels]]
7 +endpoint - [[https:~~/~~/testapi.rustaronline.com/api/Hotels/GetHotels>>https://testapi.rustaronline.com/api/Hotels/GetHotels]]
8 8  
9 9  
10 10  Use this endpoint with Get function to take in response all the list of available hotels. please take in consideration that this method CAN BE USED WITH `ApiVersion` with the value `r1` ONLY! Get the list of our hotels in the old format
... ... @@ -101,51 +101,31 @@
101 101  {{/code}}
102 102  
103 103  
104 -== Description of Response parameteres ==
104 +== Description of Response parameters ==
105 105  
106 106  
107 107  **The method returns the list of hotels with the statuses and timestamps of the prices**
108 108  
109 ->(((
110 -* **hotelid**: GUID of the hotel in the database of Rustar. This GUID will be used to retrieve additional information (like prices) about the hotel
111 -* **hotelname**: string. Name of the hotel
112 -* **pricestatus**: string. "ready" or "pending". “ready” means that prices are ready to be downloaded. “pending” means that price registration is under processing and not all prices are available for the hotel. In case of “pending” the prices should be downloaded later when the status is changed to “ready”.
113 -* **cityid**: GUID of the City where the hotel is located.
114 -* **cityname**: string. Name of the city
115 -* **districtid**: GUID of the district, where the hotel is located
116 -* **districtname**: string. Name of the district
117 -* **hasalcohol**: Boolean parameter. Describes whether hotel serves alcohol or not
118 -* **hasfreewifi**: Boolean parameter. Describes whether free wifi is available in the rooms
119 -* **hasmall**: Boolean parameter. Describes whether there is a shopping mall near the hotel
120 -* **hasmetro**: Boolean parameter. Describes whether there is a metro station near the hotel
121 -* **haspool**: Boolean parameter. Describes whether there is swimming pool in the hotel
122 -* **hotelclass**: string. “//”,””,”//~*~*”,”~*~*~*~*”,”~*~*~*~**” or ”Apartments”. Number of stars or Apartment hotel
123 -* **hoteltype**: string. "City" or “Beach”. Describes whether this hotel is located in the city or at the beach
124 -* **popular**: Boolean. Describes if the hotel was popular last 7 days
125 -* **recommended**: Boolean. True if the hotel is recommended by Rustar
126 -* **priceupdated**: DateTime of the last price update
127 -* **note**: string. Free formed text
128 -* **imageurl**: string. Optional. Points the URL for the image of the hotel if any.
129 -)))
130 130  
131 -(((
132 -* **hotelid**: GUID of the hotel in the database of Rustar. This GUID will be used to retrieve additional information (like prices) about the hotel
133 -* **hotelname**: string. Name of the hotel
134 -* **pricestatus**: string. "ready" or "pending". “ready” means that prices are ready to be downloaded. “pending” means that price registration is under processing and not all prices are available for the hotel. In case of “pending” the prices should be downloaded later when the status is changed to “ready”.
135 -* **cityid**: GUID of the City where the hotel is located.
136 -* **cityname**: string. Name of the city
137 -* **districtid**: GUID of the district, where the hotel is located
138 -* **districtname**: string. Name of the district
139 -* **hasalcohol**: Boolean parameter. Describes whether hotel serves alcohol or not
140 -* **hasfreewifi**: Boolean parameter. Describes whether free wifi is available in the rooms
141 -* **hasmall**: Boolean parameter. Describes whether there is a shopping mall near the hotel
142 -* **hasmetro**: Boolean parameter. Describes whether there is a metro station near the hotel
143 -* **haspool**: Boolean parameter. Describes whether there is swimming pool in the hotel
144 -* **hotelclass**: string. “//”,””,”//~*~*”,”~*~*~*~*”,”~*~*~*~**” or ”Apartments”. Number of stars or Apartment hotel
145 -* **hoteltype**: string. "City" or “Beach”. Describes whether this hotel is located in the city or at the beach
146 -* **popular**: Boolean. Describes if the hotel was popular last 7 days
147 -* **recommended**: Boolean. True if the hotel is recommended by Rustar
148 -* **priceupdated**: DateTime of the last price update
149 -* **note**: string. Free formed text
150 -* **imageurl**: string. Optional. Points the URL for the image of the hotel if any.
151 -)))
110 +
111 +(% class="table-bordered" %)
112 +(% class="info" %)|**Value**|**Description**
113 +|**hotelid**| GUID of the hotel in the database of Rustar. This GUID will be used to retrieve additional information (like prices) about the hotel
114 +|**hotelname**| string. Name of the hotel
115 +|**pricestatus**| string. "ready" or "pending". “ready” means that prices are ready to be downloaded. “pending” means that price registration is under processing and not all prices are available for the hotel. In case of “pending” the prices should be downloaded later when the status is changed to “ready”.
116 +|**cityid**| GUID of the City where the hotel is located.
117 +|**cityname**| string. Name of the city
118 +|**districtid**| GUID of the district, where the hotel is located
119 +|**districtname**| string. Name of the district
120 +|**hasalcohol**| Boolean parameter. Describes whether hotel serves alcohol or not
121 +|**hasfreewifi**| Boolean parameter. Describes whether free wifi is available in the rooms
122 +|**hasmall**| Boolean parameter. Describes whether there is a shopping mall near the hotel
123 +|**hasmetro**| Boolean parameter. Describes whether there is a metro station near the hotel
124 +|**haspool**| Boolean parameter. Describes whether there is swimming pool in the hotel
125 +|**hotelclass**| string. “”,””,”~*~*”,”~*~*~*~*”,”~*~*~*~**” or ”Apartments”. Number of stars or Apartment hotel
126 +|**hoteltype**| string. "City" or “Beach”. Describes whether this hotel is located in the city or at the beach
127 +|**popular**| Boolean. Describes if the hotel was popular last 7 days
128 +|**recommended**| Boolean. True if the hotel is recommended by Rustar
129 +|**priceupdated**| DateTime of the last price update
130 +|**note**| string. Free formed text
131 +|**imageurl**| string. Optional. Points the URL for the image of the hotel if any.