@@ -4,62 +4,12 @@ All URIs are relative to *http://localhost:3000/v1*
4
4
5
5
Method | HTTP request | Description
6
6
------------- | ------------- | -------------
7
- [ ** authForgotPasswordPost** ] ( AuthApi.md#authForgotPasswordPost ) | ** POST** /auth/forgot-password | Forgot password
8
7
[ ** authLoginPost** ] ( AuthApi.md#authLoginPost ) | ** POST** /auth/login | Login
9
8
[ ** authLogoutPost** ] ( AuthApi.md#authLogoutPost ) | ** POST** /auth/logout | Logout
10
9
[ ** authRefreshTokensPost** ] ( AuthApi.md#authRefreshTokensPost ) | ** POST** /auth/refresh-tokens | Refresh auth tokens
11
10
[ ** authRegisterPost** ] ( AuthApi.md#authRegisterPost ) | ** POST** /auth/register | Register as user
12
- [ ** authResetPasswordPost** ] ( AuthApi.md#authResetPasswordPost ) | ** POST** /auth/reset-password | Reset password
13
- [ ** authSendVerificationEmailPost** ] ( AuthApi.md#authSendVerificationEmailPost ) | ** POST** /auth/send-verification-email | Send verification email
14
- [ ** authVerifyEmailPost** ] ( AuthApi.md#authVerifyEmailPost ) | ** POST** /auth/verify-email | verify email
15
11
16
12
17
- <a id =" authForgotPasswordPost " ></a >
18
- # ** authForgotPasswordPost**
19
- > authForgotPasswordPost(authForgotPasswordPostRequest)
20
-
21
- Forgot password
22
-
23
- An email will be sent to reset password.
24
-
25
- ### Example
26
- ``` kotlin
27
- // Import classes:
28
- // import org.trackedout.client.infrastructure.*
29
- // import org.trackedout.client.models.*
30
-
31
- val apiInstance = AuthApi ()
32
- val authForgotPasswordPostRequest : AuthForgotPasswordPostRequest = // AuthForgotPasswordPostRequest |
33
- try {
34
- apiInstance.authForgotPasswordPost(authForgotPasswordPostRequest)
35
- } catch (e: ClientException ) {
36
- println (" 4xx response calling AuthApi#authForgotPasswordPost" )
37
- e.printStackTrace()
38
- } catch (e: ServerException ) {
39
- println (" 5xx response calling AuthApi#authForgotPasswordPost" )
40
- e.printStackTrace()
41
- }
42
- ```
43
-
44
- ### Parameters
45
-
46
- Name | Type | Description | Notes
47
- ------------- | ------------- | ------------- | -------------
48
- ** authForgotPasswordPostRequest** | [ ** AuthForgotPasswordPostRequest** ] ( AuthForgotPasswordPostRequest.md ) | |
49
-
50
- ### Return type
51
-
52
- null (empty response body)
53
-
54
- ### Authorization
55
-
56
- No authorization required
57
-
58
- ### HTTP request headers
59
-
60
- - ** Content-Type** : application/json
61
- - ** Accept** : application/json
62
-
63
13
<a id =" authLoginPost " ></a >
64
14
# ** authLoginPost**
65
15
> AuthRegisterPost201Response authLoginPost(authLoginPostRequest)
@@ -239,137 +189,3 @@ No authorization required
239
189
- ** Content-Type** : application/json
240
190
- ** Accept** : application/json
241
191
242
- <a id =" authResetPasswordPost " ></a >
243
- # ** authResetPasswordPost**
244
- > authResetPasswordPost(token, authResetPasswordPostRequest)
245
-
246
- Reset password
247
-
248
- ### Example
249
- ``` kotlin
250
- // Import classes:
251
- // import org.trackedout.client.infrastructure.*
252
- // import org.trackedout.client.models.*
253
-
254
- val apiInstance = AuthApi ()
255
- val token : kotlin.String = token_example // kotlin.String | The reset password token
256
- val authResetPasswordPostRequest : AuthResetPasswordPostRequest = // AuthResetPasswordPostRequest |
257
- try {
258
- apiInstance.authResetPasswordPost(token, authResetPasswordPostRequest)
259
- } catch (e: ClientException ) {
260
- println (" 4xx response calling AuthApi#authResetPasswordPost" )
261
- e.printStackTrace()
262
- } catch (e: ServerException ) {
263
- println (" 5xx response calling AuthApi#authResetPasswordPost" )
264
- e.printStackTrace()
265
- }
266
- ```
267
-
268
- ### Parameters
269
-
270
- Name | Type | Description | Notes
271
- ------------- | ------------- | ------------- | -------------
272
- ** token** | ** kotlin.String** | The reset password token |
273
- ** authResetPasswordPostRequest** | [ ** AuthResetPasswordPostRequest** ] ( AuthResetPasswordPostRequest.md ) | |
274
-
275
- ### Return type
276
-
277
- null (empty response body)
278
-
279
- ### Authorization
280
-
281
- No authorization required
282
-
283
- ### HTTP request headers
284
-
285
- - ** Content-Type** : application/json
286
- - ** Accept** : application/json
287
-
288
- <a id =" authSendVerificationEmailPost " ></a >
289
- # ** authSendVerificationEmailPost**
290
- > authSendVerificationEmailPost()
291
-
292
- Send verification email
293
-
294
- An email will be sent to verify email.
295
-
296
- ### Example
297
- ``` kotlin
298
- // Import classes:
299
- // import org.trackedout.client.infrastructure.*
300
- // import org.trackedout.client.models.*
301
-
302
- val apiInstance = AuthApi ()
303
- try {
304
- apiInstance.authSendVerificationEmailPost()
305
- } catch (e: ClientException ) {
306
- println (" 4xx response calling AuthApi#authSendVerificationEmailPost" )
307
- e.printStackTrace()
308
- } catch (e: ServerException ) {
309
- println (" 5xx response calling AuthApi#authSendVerificationEmailPost" )
310
- e.printStackTrace()
311
- }
312
- ```
313
-
314
- ### Parameters
315
- This endpoint does not need any parameter.
316
-
317
- ### Return type
318
-
319
- null (empty response body)
320
-
321
- ### Authorization
322
-
323
-
324
- Configure bearerAuth:
325
- ApiClient.accessToken = ""
326
-
327
- ### HTTP request headers
328
-
329
- - ** Content-Type** : Not defined
330
- - ** Accept** : application/json
331
-
332
- <a id =" authVerifyEmailPost " ></a >
333
- # ** authVerifyEmailPost**
334
- > authVerifyEmailPost(token)
335
-
336
- verify email
337
-
338
- ### Example
339
- ``` kotlin
340
- // Import classes:
341
- // import org.trackedout.client.infrastructure.*
342
- // import org.trackedout.client.models.*
343
-
344
- val apiInstance = AuthApi ()
345
- val token : kotlin.String = token_example // kotlin.String | The verify email token
346
- try {
347
- apiInstance.authVerifyEmailPost(token)
348
- } catch (e: ClientException ) {
349
- println (" 4xx response calling AuthApi#authVerifyEmailPost" )
350
- e.printStackTrace()
351
- } catch (e: ServerException ) {
352
- println (" 5xx response calling AuthApi#authVerifyEmailPost" )
353
- e.printStackTrace()
354
- }
355
- ```
356
-
357
- ### Parameters
358
-
359
- Name | Type | Description | Notes
360
- ------------- | ------------- | ------------- | -------------
361
- ** token** | ** kotlin.String** | The verify email token |
362
-
363
- ### Return type
364
-
365
- null (empty response body)
366
-
367
- ### Authorization
368
-
369
- No authorization required
370
-
371
- ### HTTP request headers
372
-
373
- - ** Content-Type** : Not defined
374
- - ** Accept** : application/json
375
-
0 commit comments