Changes for page 1. Hotels
Last modified by Giorgi Mdivnishvili on 2024/02/29 10:01
From version 13.1
edited by Giorgi Mdivnishvili
on 2024/02/26 17:59
on 2024/02/26 17:59
Change comment:
There is no comment for this version
To version 7.1
edited by Giorgi Mdivnishvili
on 2024/02/26 16:20
on 2024/02/26 16:20
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,15 +85,16 @@ 85 85 ] 86 86 } 87 87 88 - 89 89 {{/code}} 90 90 91 91 92 92 93 -== Definitions == 94 94 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 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 97 97 |**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”. 98 98 |**cityid**|GUID of the City where the hotel is located. 99 99 |**cityname**|String. Name of the city ... ... @@ -102,14 +102,12 @@ 102 102 |**hasalcohol**|Boolean parameter. Describes whether hotel serves alcohol or not 103 103 |**hasfreewifi**|Boolean parameter. Describes whether free wifi is available in the rooms 104 104 |**hasmall**|Boolean parameter. Describes whether there is a shopping mall near the hotel 105 -|**hasmetro**| 106 -|**haspool**| 107 -|**hotelclass**| string. “*”,”~*~*”,”~*~**”,”~*~*~*~*”,”~*~*~*~**” or ”Apartments”. Number of stars or Apartment hotel108 -|**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 109 109 |**popular**|Boolean. Describes if the hotel was popular last 7 days 110 110 |**recommended**|Boolean. True if the hotel is recommended by Rustar 111 111 |**priceupdated**|DateTime of the last price update 112 112 |**note**|String. Free formed text 113 113 |**imageurl**|String. Optional. Points the URL for the image of the hotel if any. 114 - 115 -