Changes for page 1. Hotels
Last modified by Giorgi Mdivnishvili on 2024/02/29 10:01
From version 16.1
edited by Giorgi Mdivnishvili
on 2024/02/27 09:34
on 2024/02/27 09:34
Change comment:
There is no comment for this version
To version 8.1
edited by Giorgi Mdivnishvili
on 2024/02/26 16:21
on 2024/02/26 16:21
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,36 +1,16 @@ 1 -{{box cssClass="floatinginfobox" title="**Contents**"}} 2 - 1 +**https:~/~/restapi.rustaronline.com/v1.01/api/hotels** 3 3 4 -{{toc/}} 5 -{{/box}} 3 +Method: GET 6 6 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 - 19 19 Parameters to pass: agentid and agentpassword 20 20 21 - ==RequestParameters=7 +Sample URL: **https:~/~/restapi.rustaronline.com/v1.01/api/hotels?agentid=test.test&agentpassword=TestP@ssw0rd** 22 22 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 -))) 29 29 10 +The method returns the list of hotels with the statuses and timestamps of the prices 30 30 31 31 Return value example: 32 32 33 -== Response Body == 34 34 35 35 {{code language="json"}} 36 36 { ... ... @@ -85,16 +85,16 @@ 85 85 ] 86 86 } 87 87 88 - 89 89 {{/code}} 90 90 91 91 92 92 93 -== Definitions == 94 94 95 -(% class="info" %)|**Parameter**|**Description** 96 -|**hotelid**| GUID of the hotel in the database of Rustar. This GUID will be used to retrieve additional information (like prices) about the hotel 97 -|**hotelname**|String. Name of the hotel 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 98 98 |**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”. 99 99 |**cityid**|GUID of the City where the hotel is located. 100 100 |**cityname**|String. Name of the city ... ... @@ -103,14 +103,12 @@ 103 103 |**hasalcohol**|Boolean parameter. Describes whether hotel serves alcohol or not 104 104 |**hasfreewifi**|Boolean parameter. Describes whether free wifi is available in the rooms 105 105 |**hasmall**|Boolean parameter. Describes whether there is a shopping mall near the hotel 106 -|**hasmetro**| 107 -|**haspool**| 108 -|**hotelclass**| string. “*”,”~*~*”,”~*~**”,”~*~*~*~*”,”~*~*~*~**” or ”Apartments”. Number of stars or Apartment hotel109 -|**hoteltype**| string. "City" or “Beach”. Describes whether this hotel is located in the city or at the beach86 +|**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 110 110 |**popular**|Boolean. Describes if the hotel was popular last 7 days 111 111 |**recommended**|Boolean. True if the hotel is recommended by Rustar 112 112 |**priceupdated**|DateTime of the last price update 113 113 |**note**|String. Free formed text 114 114 |**imageurl**|String. Optional. Points the URL for the image of the hotel if any. 115 - 116 -