1 |
2a34f0e1
|
Václav Honzík
|
/* 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 Register<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
16 |
|
|
/**
|
17 |
|
|
* No description
|
18 |
|
|
*
|
19 |
|
|
* @tags user-controller
|
20 |
|
|
* @name RegisterNewUser
|
21 |
|
|
* @request POST:/register
|
22 |
|
|
*/
|
23 |
|
|
registerNewUser = (data: UserDto, params: RequestParams = {}) =>
|
24 |
|
|
this.request<void, any>({
|
25 |
|
|
path: `/register`,
|
26 |
|
|
method: "POST",
|
27 |
|
|
body: data,
|
28 |
|
|
type: ContentType.Json,
|
29 |
|
|
...params,
|
30 |
|
|
});
|
31 |
|
|
}
|