Changes for page 1. Hotels

Last modified by Giorgi Mdivnishvili on 2024/02/29 10:01

From version 7.1
edited by Giorgi Mdivnishvili
on 2024/02/26 16:20
Change comment: There is no comment for this version
To version 14.1
edited by Giorgi Mdivnishvili
on 2024/02/26 17:59
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,16 +1,36 @@
1 -**https:~/~/restapi.rustaronline.com/v1.01/api/hotels**
1 +{{box cssClass="floatinginfobox" title="**Contents**"}}
2 +
2 2  
3 -Method: GET
4 +{{toc/}}
5 +{{/box}}
4 4  
7 += Method Description =
8 +
9 +The method returns the list of hotels with the statuses and timestamps of the prices
10 +
11 +
12 +== Endpoint URL - [Method - GET] ==
13 +
14 +{{info}}
15 +[[https:~~/~~/restapi.rustaronline.com/v1.01/api/hotels>>https://restapi.rustaronline.com/v1.01/api/hotels]]
16 +{{/info}}
17 +
18 +
5 5  Parameters to pass: agentid and agentpassword
6 6  
7 -Sample URL: **https:~/~/restapi.rustaronline.com/v1.01/api/hotels?agentid=test.test&agentpassword=TestP@ssw0rd**
21 +== Request Parameters ==
8 8  
23 +(% class="box infomessage" %)
24 +(((
25 +|**Key**|**Value**|**Request URL**
26 +|agentid|test.test|[[https:~~/~~/restapi.rustaronline.com/v1.01/api/hotels?agentid=test.test&agentpassword=TestP@ssw0rd>>https://restapi.rustaronline.com/v1.01/api/hotels?agentid=test.test&agentpassword=TestP@ssw0rd]]
27 +|agentpassword|[[TestP@ssw0rd>>mailto:TestP@ssw0rd]]|[[https:~~/~~/restapi.rustaronline.com/v1.01/api/hotels?agentid=test.test&agentpassword=TestP@ssw0rd>>https://restapi.rustaronline.com/v1.01/api/hotels?agentid=test.test&agentpassword=TestP@ssw0rd]]
28 +)))
9 9  
10 -The method returns the list of hotels with the statuses and timestamps of the prices
11 11  
12 12  Return value example:
13 13  
33 +== Response Body ==
14 14  
15 15  {{code language="json"}}
16 16  {
... ... @@ -65,16 +65,15 @@
65 65   ]
66 66  }
67 67  
88 +
68 68  {{/code}}
69 69  
70 70  
71 71  
93 +== Definitions ==
72 72  
73 -**~ GUID of the hotel in the database of Rustar. This GUID will be used to retrieve additional information (like prices) about the hotel**
74 -
75 -
76 -|**hotelid**|GUID of the hotel in the database of Rustar. This GUID will be used to retrieve additional information (like prices) about the hotel
77 -|**hotelname**| string. Name of the hotel
95 +|**hotelid**| GUID of the hotel in the database of Rustar. This GUID will be used to retrieve additional information (like prices) about the hotel
96 +|**hotelname**|String. Name of the hotel
78 78  |**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”.
79 79  |**cityid**|GUID of the City where the hotel is located.
80 80  |**cityname**|String. Name of the city
... ... @@ -83,12 +83,14 @@
83 83  |**hasalcohol**|Boolean parameter. Describes whether hotel serves alcohol or not
84 84  |**hasfreewifi**|Boolean parameter. Describes whether free wifi is available in the rooms
85 85  |**hasmall**|Boolean parameter. Describes whether there is a shopping mall near the hotel
86 -|**hasmetro**|Boolean parameter. Describes whether there is a metro station near the hotel
87 -|**haspool**|Boolean parameter. Describes whether there is swimming pool in the hotel
88 -|**hotelclass**|String. “*”,”~*~*”,”~*~**”,”~*~*~*~*”,”~*~*~*~**” or ”Apartments”. Number of stars or Apartment hotel
89 -|**hoteltype**|String. "City" or “Beach”. Describes whether this hotel is located in the city or at the beach
105 +|**hasmetro**| Boolean parameter. Describes whether there is a metro station near the hotel
106 +|**haspool**| Boolean parameter. Describes whether there is swimming pool in the hotel
107 +|**hotelclass**|string. “*”,”~*~*”,”~*~**”,”~*~*~*~*”,”~*~*~*~**” or ”Apartments”. Number of stars or Apartment hotel
108 +|**hoteltype**|string. "City" or “Beach”. Describes whether this hotel is located in the city or at the beach
90 90  |**popular**|Boolean. Describes if the hotel was popular last 7 days
91 91  |**recommended**|Boolean. True if the hotel is recommended by Rustar
92 92  |**priceupdated**|DateTime of the last price update
93 93  |**note**|String. Free formed text
94 94  |**imageurl**|String. Optional. Points the URL for the image of the hotel if any.
114 +
115 +