1
|
/* eslint-disable */
|
2
|
/* tslint:disable */
|
3
|
/*
|
4
|
* ---------------------------------------------------------------
|
5
|
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
6
|
* ## ##
|
7
|
* ## AUTHOR: acacode ##
|
8
|
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
9
|
* ---------------------------------------------------------------
|
10
|
*/
|
11
|
|
12
|
import { UserDto } from "./data-contracts";
|
13
|
import { ContentType, HttpClient, RequestParams } from "./http-client";
|
14
|
|
15
|
export class User<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
16
|
/**
|
17
|
* No description
|
18
|
*
|
19
|
* @tags user-controller
|
20
|
* @name UpdateUser
|
21
|
* @request PUT:/user/{username}
|
22
|
*/
|
23
|
updateUser = (username: string, data: UserDto, params: RequestParams = {}) =>
|
24
|
this.request<void, any>({
|
25
|
path: `/user/${username}`,
|
26
|
method: "PUT",
|
27
|
body: data,
|
28
|
type: ContentType.Json,
|
29
|
...params,
|
30
|
});
|
31
|
/**
|
32
|
* No description
|
33
|
*
|
34
|
* @tags user-controller
|
35
|
* @name DeleteUser
|
36
|
* @request DELETE:/user/{username}
|
37
|
*/
|
38
|
deleteUser = (username: string, params: RequestParams = {}) =>
|
39
|
this.request<void, any>({
|
40
|
path: `/user/${username}`,
|
41
|
method: "DELETE",
|
42
|
...params,
|
43
|
});
|
44
|
}
|