Changes for page 1. Hotels
Last modified by Giorgi Mdivnishvili on 2024/02/29 10:01
From version 9.1
edited by Giorgi Mdivnishvili
on 2024/02/26 17:36
on 2024/02/26 17:36
Change comment:
There is no comment for this version
To version 12.1
edited by Giorgi Mdivnishvili
on 2024/02/26 17:58
on 2024/02/26 17:58
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -6,163 +6,111 @@ 6 6 7 7 = Method Description = 8 8 9 - **GetDestinationCountries**methodisusedtogetalldestination countrieslist,whichisprovided by Nugios.9 +The method returns the list of hotels with the statuses and timestamps of the prices 10 10 11 11 12 -== Endpoint URL - [GET] == 12 +== Endpoint URL - [Method - GET] == 13 13 14 14 {{info}} 15 -[[https:~~/~~/ integration.kazunion.com/api/Catalogue/GetDestinationCountries>>http://integration.kazunion.com/api/Catalogue/GetDestinationCountries]]15 +[[https:~~/~~/restapi.rustaronline.com/v1.01/api/hotels>>https://restapi.rustaronline.com/v1.01/api/hotels]] 16 16 {{/info}} 17 17 18 18 19 +Parameters to pass: agentid and agentpassword 20 + 19 19 == Request Parameters == 20 20 21 21 (% class="box infomessage" %) 22 22 ((( 23 - 24 - 25 25 |**Key**|**Value**|**Request URL** 26 -|onlyHotels|True|[[https:~~/~~/integration.kazunion.com/api/Catalogue/GetDestinationCountries?onlyHotels=true>>http://integration.kazunion.com/api/Catalogue/GetDestinationCountries?onlyHotels=true]] 27 -|onlyHotels|False|[[https:~~/~~/integration.kazunion.com/api/Catalogue/GetDestinationCountries?onlyHotels=false>>http://integration.kazunion.com/api/Catalogue/GetDestinationCountries?onlyHotels=false]] 28 - 29 - 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]] 30 30 ))) 31 31 32 32 33 -{{{In the system, Destination countries are two types: 34 -1) Destinations where packages are available with flights, 35 -2) Destination Countries with only hotels. 36 -So using parameter false, or true there is option given, to determine type of destination country.}}} 31 +Return value example: 37 37 38 - 39 -== Request Body == 40 - 41 -{{code language="Json"}} 42 -none 43 -{{/code}} 44 - 45 - 46 46 == Response Body == 47 47 48 48 {{code language="json"}} 49 49 { 50 - "error": true, 51 - "errorCode": "string", 52 - "errorDescription": "string", 53 - "userErrorDescription": "string", 54 - "countries": [ 37 + "Code": "00", 38 + "Message": "", 39 + "Timestamp": "2016-06-27T19:20:00.7512185+04:00", 40 + "Version": “1.01”, 41 + "ResponseID": "b512a117-6745-493d-9fa4-828d79c0df1d", 42 + "Data": [ 55 55 { 56 - "countryCode": "string", 57 - "countryName": "string", 58 - "note": "string", 59 - "phoneCode": "string", 60 - "isO2": "string", 61 - "isO3": "string", 62 - "status": 0, 63 - "sortingOrder": 0, 64 - "sellCurrency": "string" 44 + "hotelid": "d6f9299f-5d94-4955-85e7-003e0383023c", 45 + "hotelname": "Summer Land Motel - Sharjah", 46 + "pricestatus": "ready", 47 + "cityid": "f78ac3bc-f040-46d0-8319-2c52083080a6", 48 + "cityname": "Sharjah", 49 + "districtid": "7ac1bbc8-59ea-4977-b272-ed8553f94f9b", 50 + "districtname": "Sharjah", 51 + "hasalcohol": false, 52 + "hasfreewifi": true, 53 + "hasmall": false, 54 + "hasmetro": false, 55 + "haspool": true, 56 + "hotelclass": "***", 57 + "hoteltype": "City", 58 + "popular": false, 59 + "recommended": false, 60 + "priceupdated": "2016-04-24T11:12:09.66", 61 + "note": "Check-in time is 14:00 hrs, Check-out time is 12:00 hrs\r\n\r\n\r\nHotel guests can access the pool and beach of Beach Hotel Sharjah hotel - AED 20.00 ($5.50) for 1 person a day. \r\nHotel guests can access the pool and beach of Sharjah Carlton Hotel hotel - AED 20.00 ($5.50) for 1 person a day. \r\nHotel guests can access the pool and beach of Golden Beach Motel hotel - AED 15.00 ($4.10) for 1 person a day. \r\nThe hotel provides a group transfer to Dubai (Naser Square).\r\n\r\n\r\n", 62 + "imageurl": "https://www.rustaronline.com/images/pages/hotels/thumbnail/F2EB7838-B479-4A81-BE9A-8113E06C70B5.jpg" 63 + }, 64 + { 65 + "hotelid": "60d6bb96-a8ba-4c14-908e-7a9227c34bf3", 66 + "hotelname": "Burj Al Arab", 67 + "pricestatus": "ready", 68 + "cityid": "f5185fa3-3f56-44ed-bf6b-80386a33caa2", 69 + "cityname": "Dubai", 70 + "districtid": "e6f59e6e-4747-4c14-9b6b-a709cce36c33", 71 + "districtname": "Jumeirah", 72 + "hasalcohol": true, 73 + "hasfreewifi": true, 74 + "hasmall": false, 75 + "hasmetro": false, 76 + "haspool": true, 77 + "hotelclass": "*****", 78 + "hoteltype": "Beach", 79 + "popular": false, 80 + "recommended": false, 81 + "priceupdated": "2016-06-19T14:17:39.65", 82 + "note": null, 83 +"imageurl": "" 65 65 } 66 66 ] 67 67 } 68 -{{/code}} 69 69 70 70 71 -=== example === 72 - 73 -{{code language="Json"}} 74 - { 75 - "countryCode": "MV", 76 - "countryName": "Maldives", 77 - "phoneCode": "960", 78 - "isO2": "MV", 79 - "isO3": "MDV", 80 - "status": 1, 81 - "sortingOrder": 800, 82 - "sellCurrency": "USD" 83 - }, 84 - { 85 - "countryCode": "GE", 86 - "countryName": "Georgia", 87 - "phoneCode": "995", 88 - "isO2": "GE", 89 - "isO3": "GEO", 90 - "status": 1, 91 - "sortingOrder": 900, 92 - "sellCurrency": "USD" 93 - } 94 94 {{/code}} 95 95 96 96 97 -=== Schema===92 +=== === 98 98 99 -(% data-xwiki-non-generated-content="java.util.List" %) 100 -((( 101 -{{success}} 102 -GetCountriesResponse{ 103 - 104 -|error|boolean 105 -|errorCode|string 106 -nullable: true 107 -|errorDescription|string 108 -nullable: true 109 -|userErrorDescription|string 110 -nullable: true 111 -|countries|[ 112 -nullable: trueCountry{((( 113 -|countryCode|string 114 -nullable: true 115 -readOnly: true 116 -|countryName|string 117 -nullable: true 118 -|note|string 119 -nullable: true 120 -|phoneCode|string 121 -nullable: true 122 -|isO2|string 123 -nullable: true 124 -|isO3|string 125 -nullable: true 126 -|status|integer($int32) 127 -|sortingOrder|integer($int32) 128 -|sellCurrency|string 129 -nullable: true 130 - 131 -}] 132 -))) 133 - 134 -} 135 -{{/success}} 136 - 137 - 138 -))) 139 - 140 140 == Definitions == 141 141 142 -{{code language="none"}} 143 -countrycode: string. ISO2 Country code 144 -countryName : Name of the country 145 -isO2 : country name in iso2 standard 146 -isO3 : country name in iso3 standard 147 -sellCurrency : Sell Currency in given country 148 -{{/code}} 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 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 +|**cityid**|GUID of the City where the hotel is located. 100 +|**cityname**|String. Name of the city 101 +|**districtid**|GUID of the district, where the hotel is located 102 +|**districtname**|String. Name of the district 103 +|**hasalcohol**|Boolean parameter. Describes whether hotel serves alcohol or not 104 +|**hasfreewifi**|Boolean parameter. Describes whether free wifi is available in the rooms 105 +|**hasmall**|Boolean parameter. Describes whether there is a shopping mall near the hotel 106 +|**hasmetro**| Boolean parameter. Describes whether there is a metro station near the hotel 107 +|**haspool**| Boolean parameter. Describes whether there is swimming pool in the hotel 108 +|**hotelclass**|string. “*”,”~*~*”,”~*~**”,”~*~*~*~*”,”~*~*~*~**” or ”Apartments”. Number of stars or Apartment hotel 109 +|**hoteltype**|string. "City" or “Beach”. Describes whether this hotel is located in the city or at the beach 110 +|**popular**|Boolean. Describes if the hotel was popular last 7 days 111 +|**recommended**|Boolean. True if the hotel is recommended by Rustar 112 +|**priceupdated**|DateTime of the last price update 113 +|**note**|String. Free formed text 114 +|**imageurl**|String. Optional. Points the URL for the image of the hotel if any. 149 149 150 - 151 -== Important == 152 - 153 -{{error}} 154 -It's Important to in every other request header, put Auth token 155 - 156 -**Key **- Authorization 157 - 158 -**Value **- Bearer Token what is given in this response. (Authorization type Bearer Token) 159 - 160 - 161 -**also note in headers that:** 162 - 163 -Content-Type - application/json 164 - 165 -**Key - **X-nugios-timezone 166 - 167 -**Value **- 240 168 -{{/error}} 116 +