Wiki source code of 1. Authorization
Version 29.1 by Giorgi Mdivnishvili on 2024/04/11 15:33
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
19.1 | 1 | (% data-xwiki-non-generated-content="java.util.List" %) |
| 2 | ((( | ||
| |
21.1 | 3 | |
| |
19.1 | 4 | ))) |
| 5 | |||
| |
1.1 | 6 | {{box cssClass="floatinginfobox" title="**Contents**"}} |
| 7 | {{toc/}} | ||
| 8 | {{/box}} | ||
| 9 | |||
| 10 | = Method Description = | ||
| 11 | |||
| 12 | |||
| |
29.1 | 13 | == Authorization: Starting Your Integration == |
| |
6.1 | 14 | |
| |
28.1 | 15 | The first step in integrating with our API is the authorization process. As a developer, you'll be assigned a unique username and password. These credentials are essential for generating the access token, a critical component that must be included in the headers of all subsequent API requests. This token validates your requests and grants you access to the full suite of our services. |
| 16 | |||
| 17 | |||
| |
22.1 | 18 | == Request URL - [POST] == |
| |
1.1 | 19 | |
| |
6.1 | 20 | (% class="box infomessage" %) |
| 21 | ((( | ||
| |
25.1 | 22 | [[https:~~/~~/integration.kazunion.com/api/Auth/Auth>>https://integration.kazunion.com/api/Auth/Auth]] |
| |
6.1 | 23 | ))) |
| |
1.1 | 24 | |
| |
6.1 | 25 | |
| |
1.1 | 26 | == Request Parameters == |
| 27 | |||
| |
6.1 | 28 | (% class="box" %) |
| 29 | ((( | ||
| |
1.1 | 30 | none |
| |
6.1 | 31 | ))) |
| |
1.1 | 32 | |
| |
6.1 | 33 | |
| |
1.1 | 34 | == Request Body == |
| 35 | |||
| 36 | {{code language="Json"}} | ||
| 37 | { | ||
| 38 | "login": "string", | ||
| 39 | "password": "string" | ||
| 40 | } | ||
| 41 | {{/code}} | ||
| 42 | |||
| |
9.1 | 43 | |
| |
1.1 | 44 | == Response Body == |
| 45 | |||
| 46 | {{code language="Json"}} | ||
| 47 | { | ||
| 48 | "accessToken": "string" | ||
| 49 | } | ||
| 50 | {{/code}} | ||
| 51 | |||
| |
12.1 | 52 | |
| |
27.1 | 53 | |
| |
1.1 | 54 | === Schema === |
| 55 | |||
| |
19.1 | 56 | (% data-xwiki-non-generated-content="java.util.List" %) |
| 57 | ((( | ||
| |
26.1 | 58 | |
| |
19.1 | 59 | ))) |
| 60 | |||
| |
11.1 | 61 | {{success}} |
| 62 | AuthRequest{ | ||
| 63 | |||
| 64 | |login|string | ||
| 65 | nullable: true | ||
| 66 | |password|string | ||
| 67 | nullable: true | ||
| 68 | |||
| |
3.1 | 69 | } |
| |
11.1 | 70 | {{/success}} |
| 71 | |||
| |
16.1 | 72 | |
| 73 | == Important == | ||
| 74 | |||
| 75 | {{error}} | ||
| 76 | It's Important to in every other request header, put Auth token | ||
| 77 | |||
| |
17.1 | 78 | **Key **- Authorization |
| |
16.1 | 79 | |
| |
27.1 | 80 | **Value **- Bearer Token what is given in this response. (Authorization type Bearer Token) |
| |
16.1 | 81 | |
| 82 | |||
| |
17.1 | 83 | **also note in headers that:** |
| |
16.1 | 84 | |
| 85 | Content-Type - application/json | ||
| 86 | |||
| |
17.1 | 87 | **Key - **X-nugios-timezone |
| 88 | |||
| 89 | **Value **- 240 | ||
| |
16.1 | 90 | {{/error}} |