Wiki source code of 2. Catalogue

Version 12.2 by Giorgi Mdivnishvili on 2024/04/11 15:48

Show last authors
1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
4
5 = [[GetDestinationCountries>>GetDestinationCountries]] =
6
7 This method is used to get all destination country list with parameters.
8
9 = [[GetCountries>>GetCountries]] =
10
11 This method is used to get all country list with parameters.
12
13 = [[GetDepartureCities>>GetDepartureCities]] =
14
15 This method is used to get all Departure cities list.
16
17 = [[GetArrivalDistricts>>GetArrivalDistricts]] =
18
19 This method is used to get all Districts list.
20
21 = [[GetHotels>>GetHotels]] =
22
23 This method is used to get all hotels list from the system.
24
25 = [[GetAirportTree>>GetAirportTree]] =
26
27 This method is used to get airports list.
28
29
30
31
32
33
34 == Important ==
35
36 {{error}}
37 === Implementing Authorization in Subsequent Requests ===
38
39 For every API request after the initial authentication, it's crucial to include the authorization token in the request header. This ensures your requests are authorized and can access the necessary resources. Here's how to properly include your token:
40
41 * **Header Key:** Authorization
42 * **Header Value:** Bearer [Your Token Here] - Use the bearer token provided in the initial authentication response. The authorization type should be specified as Bearer Token.
43
44 Additionally, to ensure your requests are properly formatted and recognized, include the following headers:
45
46 * **Content-Type:** Specify this header as application/json to indicate the format of the request body.
47 * **Header Key:** X-nugios-timezone
48 * **Header Value:** 240 - Adjust this value to match your local timezone offset in minutes.
49
50 Incorporating these headers with their respective values is essential for the successful processing of your API requests.
51 {{/error}}