Wiki source code of 1. Authorization
Version 18.1 by Giorgi Mdivnishvili on 2023/12/19 18:18
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | {{box cssClass="floatinginfobox" title="**Contents**"}} |
2 | {{toc/}} | ||
3 | {{/box}} | ||
4 | |||
5 | = Method Description = | ||
6 | |||
![]() |
15.1 | 7 | The initial method of the integration process is authorization. You will be provided with a unique user username and password to generate the access token that you will need to pass in all the following methods. |
![]() |
1.1 | 8 | |
![]() |
6.1 | 9 | |
![]() |
1.1 | 10 | == Request URL - [GET] == |
11 | |||
![]() |
6.1 | 12 | (% class="box infomessage" %) |
13 | ((( | ||
14 | https:~/~/online-api.kazunion.com/api/Auth/Auth | ||
15 | ))) | ||
![]() |
1.1 | 16 | |
![]() |
6.1 | 17 | |
![]() |
1.1 | 18 | == Request Parameters == |
19 | |||
![]() |
6.1 | 20 | (% class="box" %) |
21 | ((( | ||
![]() |
1.1 | 22 | none |
![]() |
6.1 | 23 | ))) |
![]() |
1.1 | 24 | |
![]() |
6.1 | 25 | |
![]() |
1.1 | 26 | == Request Body == |
27 | |||
28 | {{code language="Json"}} | ||
29 | { | ||
30 | "login": "string", | ||
31 | "password": "string" | ||
32 | } | ||
33 | {{/code}} | ||
34 | |||
![]() |
9.1 | 35 | |
![]() |
1.1 | 36 | == Response Body == |
37 | |||
38 | {{code language="Json"}} | ||
39 | { | ||
40 | "accessToken": "string" | ||
41 | } | ||
42 | {{/code}} | ||
43 | |||
![]() |
12.1 | 44 | |
![]() |
1.1 | 45 | === Schema === |
46 | |||
![]() |
11.1 | 47 | {{success}} |
48 | AuthRequest{ | ||
49 | |||
50 | |login|string | ||
51 | nullable: true | ||
52 | |password|string | ||
53 | nullable: true | ||
54 | |||
![]() |
3.1 | 55 | } |
![]() |
11.1 | 56 | {{/success}} |
57 | |||
![]() |
16.1 | 58 | |
59 | == Important == | ||
60 | |||
61 | {{error}} | ||
62 | It's Important to in every other request header, put Auth token | ||
63 | |||
![]() |
17.1 | 64 | **Key **- Authorization |
![]() |
16.1 | 65 | |
![]() |
17.1 | 66 | **Value **- Bearer Token what is given in this response. |
![]() |
16.1 | 67 | |
68 | |||
![]() |
17.1 | 69 | **also note in headers that:** |
![]() |
16.1 | 70 | |
71 | Content-Type - application/json | ||
72 | |||
![]() |
17.1 | 73 | **Key - **X-nugios-timezone |
74 | |||
75 | **Value **- 240 | ||
![]() |
16.1 | 76 | {{/error}} |
77 | |||
78 |