1 |
b61ca51b
|
Schwobik
|
/* 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 { SourcesDto } from "./data-contracts";
|
13 |
|
|
import { ContentType, HttpClient, RequestParams } from "./http-client";
|
14 |
|
|
|
15 |
|
|
export class Sources<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
16 |
|
|
/**
|
17 |
|
|
* No description
|
18 |
|
|
*
|
19 |
|
|
* @tags sources-controller
|
20 |
|
|
* @name GetTitlePage1
|
21 |
|
|
* @summary returns sources
|
22 |
|
|
* @request GET:/sources
|
23 |
|
|
*/
|
24 |
|
|
getTitlePage1 = (params: RequestParams = {}) =>
|
25 |
|
|
this.request<SourcesDto, any>({
|
26 |
|
|
path: `/sources`,
|
27 |
|
|
method: "GET",
|
28 |
|
|
...params,
|
29 |
|
|
});
|
30 |
|
|
/**
|
31 |
|
|
* No description
|
32 |
|
|
*
|
33 |
|
|
* @tags sources-controller
|
34 |
|
|
* @name UpdateTitlePage1
|
35 |
|
|
* @summary updates/creates sources
|
36 |
|
|
* @request POST:/sources
|
37 |
|
|
*/
|
38 |
|
|
updateTitlePage1 = (data: SourcesDto, params: RequestParams = {}) =>
|
39 |
|
|
this.request<void, any>({
|
40 |
|
|
path: `/sources`,
|
41 |
|
|
method: "POST",
|
42 |
|
|
body: data,
|
43 |
|
|
type: ContentType.Json,
|
44 |
|
|
...params,
|
45 |
|
|
});
|
46 |
|
|
}
|