Changes for page 1. Hotels
Last modified by Giorgi Mdivnishvili on 2024/02/29 10:01
From version 10.1
edited by Giorgi Mdivnishvili
on 2024/02/26 17:55
on 2024/02/26 17:55
Change comment:
There is no comment for this version
To version 2.1
edited by Giorgi Mdivnishvili
on 2024/02/26 15:06
on 2024/02/26 15:06
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - 1.Hotels1 +Hotels - Content
-
... ... @@ -1,38 +1,17 @@ 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=5 +Parameters to pass: agentid and agentpassword 8 8 9 -** GetDestinationCountries **method isusedo getall destinationcountrieslist,which is provided by Nugios.7 +Sample URL: **https:~/~/restapi.rustaronline.com/v1.01/api/hotels?agentid=test.test&agentpassword=TestP@ssw0rd** 10 10 11 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 -== Request Parameters == 20 - 21 -(% class="box infomessage" %) 22 -((( 23 -|**Key**|**Value**|**Request URL** 24 -|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]] 25 -|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]] 26 -))) 27 - 28 - 29 29 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 33 34 -== Response Body == 35 - 36 36 {{code language="json"}} 37 37 { 38 38 "Code": "00", ... ... @@ -86,33 +86,47 @@ 86 86 ] 87 87 } 88 88 89 - 90 90 {{/code}} 91 91 92 92 93 -=== === 94 94 95 -== Definitions == 96 96 97 -|**hotelid**| GUID of the hotel in the database of Rustar. This GUID will be used to retrieve additional information (like prices) about the hotel 98 -|**hotelname**|String. Name of the hotel 99 -|**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”. 100 -|**cityid**|GUID of the City where the hotel is located. 101 -|**cityname**|String. Name of the city 102 -|**districtid**|GUID of the district, where the hotel is located 103 -|**districtname**|String. Name of the district 104 -|**hasalcohol**|Boolean parameter. Describes whether hotel serves alcohol or not 105 -|**hasfreewifi**|Boolean parameter. Describes whether free wifi is available in the rooms 106 -|**hasmall**|Boolean parameter. Describes whether there is a shopping mall near the hotel 107 -|**hasmetro**| Boolean parameter. Describes whether there is a metro station near the hotel 108 -|**haspool**| Boolean parameter. Describes whether there is swimming pool in the hotel 109 -|**hotelclass**|string. “*”,”~*~*”,”~*~**”,”~*~*~*~*”,”~*~*~*~**” or ”Apartments”. Number of stars or Apartment hotel 110 -|**hoteltype**|string. "City" or “Beach”. Describes whether this hotel is located in the city or at the beach 111 -|**popular**|Boolean. Describes if the hotel was popular last 7 days 112 -|**recommended**|Boolean. True if the hotel is recommended by Rustar 113 -|**priceupdated**|DateTime of the last price update 114 -|**note**|String. Free formed text 115 -|**imageurl**|String. Optional. Points the URL for the image of the hotel if any. 73 +**hotelid:** GUID of the hotel in the database of Rustar. This GUID will be used to retrieve additional information (like prices) about the hotel 116 116 75 +**hotelname:** string. Name of the hotel 117 117 77 +**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”. 78 + 79 +**cityid:** GUID of the City where the hotel is located. 80 + 81 +**cityname:** string. Name of the city 82 + 83 +**districtid:** GUID of the district, where the hotel is located 84 + 85 +**districtname: ** string. Name of the district 86 + 87 +**hasalcohol:** Boolean parameter. Describes whether hotel serves alcohol or not 88 + 89 +**hasfreewifi:** Boolean parameter. Describes whether free wifi is available in the rooms 90 + 91 +**hasmall:** Boolean parameter. Describes whether there is a shopping mall near the hotel 92 + 93 +**hasmetro:** Boolean parameter. Describes whether there is a metro station near the hotel 94 + 95 +**haspool:** Boolean parameter. Describes whether there is swimming pool in the hotel 96 + 97 +**hotelclass:** string. “*”,”~*~*”,”~*~**”,”~*~*~*~*”,”~*~*~*~**” or ”Apartments”. Number of stars or Apartment hotel 98 + 99 +**hoteltype:** string. "City" or “Beach”. Describes whether this hotel is located in the city or at the beach 100 + 101 +**popular:** Boolean. Describes if the hotel was popular last 7 days 102 + 103 +**recommended:** Boolean. True if the hotel is recommended by Rustar 104 + 105 +**priceupdated:** DateTime of the last price update 106 + 107 +**note:** string. Free formed text 108 + 109 +**imageurl:** string. Optional. Points the URL for the image of the hotel if any. 110 + 118 118