Wiki source code of CalcPackage
Version 2.1 by Giorgi Mdivnishvili on 2023/12/14 12:07
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{box cssClass="floatinginfobox" title="**Contents**"}} | ||
2 | |||
3 | |||
4 | {{toc/}} | ||
5 | {{/box}} | ||
6 | |||
7 | = Method Description = | ||
8 | |||
9 | The initial method of the integration process is authorization. You will be provided with a test user username and password to generate the access token that you will need to pass in all the following methods. | ||
10 | |||
11 | |||
12 | == Endpoint URL - [GET] == | ||
13 | |||
14 | {{info}} | ||
15 | [[http:~~/~~/online-api.kazunion.com/api/Catalogue/GetHotels>>http://online-api.kazunion.com/api/Catalogue/GetHotels]] | ||
16 | {{/info}} | ||
17 | |||
18 | |||
19 | == Request Parameters == | ||
20 | |||
21 | (% class="box infomessage" %) | ||
22 | ((( | ||
23 | |||
24 | |||
25 | |**Key**|**Value**|**Request URL** | ||
26 | |CountryCode|AE|[[http:~~/~~/online-api.kazunion.com/api/Catalogue/GetHotels?countryCode=AE>>http://online-api.kazunion.com/api/Catalogue/GetHotels?countryCode=AE]] | ||
27 | |||
28 | |||
29 | ))) | ||
30 | |||
31 | |||
32 | == Request Body == | ||
33 | |||
34 | {{code language="Json"}} | ||
35 | none | ||
36 | {{/code}} | ||
37 | |||
38 | |||
39 | == Response Body == | ||
40 | |||
41 | {{code language="json"}} | ||
42 | [ | ||
43 | { | ||
44 | "hotelCode": "string", | ||
45 | "hotelName": "string", | ||
46 | "hotelClass": "string", | ||
47 | "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
48 | "countryCode": "string", | ||
49 | "countryName": "string", | ||
50 | "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6", | ||
51 | "cityName": "string", | ||
52 | "districtName": "string", | ||
53 | "hotelType": "CityHotel", | ||
54 | "latitude": "string", | ||
55 | "longitude": "string", | ||
56 | "hasAlcohol": true, | ||
57 | "hasFreeWifi": true, | ||
58 | "hasMetro": true, | ||
59 | "hasPool": true, | ||
60 | "hasMall": true | ||
61 | } | ||
62 | ] | ||
63 | {{/code}} | ||
64 | |||
65 | |||
66 | === example === | ||
67 | |||
68 | {{code language="Json"}} | ||
69 | { | ||
70 | "hotelCode": "cfbca5b5-4090-4bcd-805a-463d83423b86", | ||
71 | "hotelName": "Ramada Abu Dhabi Corniche", | ||
72 | "hotelClass": "4", | ||
73 | "cityUID": "28c794fe-3c7e-4da2-ba93-f24bd3d4730d", | ||
74 | "countryCode": "AE", | ||
75 | "districtUID": "ee402984-6d1d-4fcf-915d-f31b14fa8b0f", | ||
76 | "cityName": "Abu Dhabi", | ||
77 | "districtName": "Abu Dhabi", | ||
78 | "hotelType": "CityHotel", | ||
79 | "latitude": "24.503759", | ||
80 | "longitude": "54.374577", | ||
81 | "hasAlcohol": false, | ||
82 | "hasFreeWifi": true, | ||
83 | "hasMetro": false, | ||
84 | "hasPool": true, | ||
85 | "hasMall": false | ||
86 | }, | ||
87 | { | ||
88 | "hotelCode": "c64b6082-2337-4519-8c33-4bcdef76b16b", | ||
89 | "hotelName": "Emirates Palace Mandarin Oriental, Abu Dhabi", | ||
90 | "hotelClass": "5", | ||
91 | "cityUID": "28c794fe-3c7e-4da2-ba93-f24bd3d4730d", | ||
92 | "countryCode": "AE", | ||
93 | "districtUID": "ee402984-6d1d-4fcf-915d-f31b14fa8b0f", | ||
94 | "cityName": "Abu Dhabi", | ||
95 | "districtName": "Abu Dhabi", | ||
96 | "hotelType": "BeachHotel", | ||
97 | "latitude": "24.461556", | ||
98 | "longitude": "54.317404", | ||
99 | "hasAlcohol": false, | ||
100 | "hasFreeWifi": true, | ||
101 | "hasMetro": false, | ||
102 | "hasPool": true, | ||
103 | "hasMall": false | ||
104 | }, | ||
105 | {{/code}} | ||
106 | |||
107 | |||
108 | === Schema === | ||
109 | |||
110 | {{code language="none"}} | ||
111 | [Hotel{ | ||
112 | hotelCode string | ||
113 | nullable: true | ||
114 | hotelName string | ||
115 | nullable: true | ||
116 | hotelClass string | ||
117 | nullable: true | ||
118 | cityUID string($uuid) | ||
119 | nullable: true | ||
120 | countryCode string | ||
121 | nullable: true | ||
122 | countryName string | ||
123 | nullable: true | ||
124 | districtUID string($uuid) | ||
125 | nullable: true | ||
126 | cityName string | ||
127 | nullable: true | ||
128 | districtName string | ||
129 | nullable: true | ||
130 | hotelType HotelTypeEnumstring | ||
131 | Enum: | ||
132 | [ CityHotel, BeachHotel, SecondLineBeach ] | ||
133 | latitude string | ||
134 | nullable: true | ||
135 | longitude string | ||
136 | nullable: true | ||
137 | hasAlcohol boolean | ||
138 | hasFreeWifi boolean | ||
139 | hasMetro boolean | ||
140 | hasPool boolean | ||
141 | hasMall boolean | ||
142 | }] | ||
143 | {{/code}} |