1 |
c7d2ced1
|
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 |
a69da1e3
|
Vaclav Honzik
|
import { CatalogItemDto } from "./data-contracts";
|
13 |
c7d2ced1
|
Václav Honzík
|
import { ContentType, HttpClient, RequestParams } from "./http-client";
|
14 |
|
|
|
15 |
|
|
export class Catalog<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
16 |
|
|
/**
|
17 |
|
|
* No description
|
18 |
|
|
*
|
19 |
|
|
* @tags catalog-controller
|
20 |
|
|
* @name UpdateCatalogEntry
|
21 |
|
|
* @request PUT:/catalog/{id}
|
22 |
|
|
*/
|
23 |
a69da1e3
|
Vaclav Honzik
|
updateCatalogEntry = (id: string, data: CatalogItemDto, params: RequestParams = {}) =>
|
24 |
c7d2ced1
|
Václav Honzík
|
this.request<void, any>({
|
25 |
|
|
path: `/catalog/${id}`,
|
26 |
|
|
method: "PUT",
|
27 |
|
|
body: data,
|
28 |
|
|
type: ContentType.Json,
|
29 |
|
|
...params,
|
30 |
|
|
});
|
31 |
|
|
/**
|
32 |
|
|
* No description
|
33 |
|
|
*
|
34 |
|
|
* @tags catalog-controller
|
35 |
|
|
* @name DeleteCatalogEntry
|
36 |
|
|
* @request DELETE:/catalog/{id}
|
37 |
|
|
*/
|
38 |
|
|
deleteCatalogEntry = (id: string, params: RequestParams = {}) =>
|
39 |
|
|
this.request<void, any>({
|
40 |
|
|
path: `/catalog/${id}`,
|
41 |
|
|
method: "DELETE",
|
42 |
|
|
...params,
|
43 |
|
|
});
|
44 |
|
|
/**
|
45 |
|
|
* No description
|
46 |
|
|
*
|
47 |
|
|
* @tags catalog-controller
|
48 |
|
|
* @name GetAllUsers1
|
49 |
|
|
* @request GET:/catalog
|
50 |
|
|
*/
|
51 |
|
|
getAllUsers1 = (params: RequestParams = {}) =>
|
52 |
a69da1e3
|
Vaclav Honzik
|
this.request<CatalogItemDto[], any>({
|
53 |
c7d2ced1
|
Václav Honzík
|
path: `/catalog`,
|
54 |
|
|
method: "GET",
|
55 |
|
|
...params,
|
56 |
|
|
});
|
57 |
|
|
/**
|
58 |
|
|
* No description
|
59 |
|
|
*
|
60 |
|
|
* @tags catalog-controller
|
61 |
|
|
* @name AddCatalogEntry
|
62 |
|
|
* @request POST:/catalog
|
63 |
|
|
*/
|
64 |
a69da1e3
|
Vaclav Honzik
|
addCatalogEntry = (data: CatalogItemDto, params: RequestParams = {}) =>
|
65 |
c7d2ced1
|
Václav Honzík
|
this.request<void, any>({
|
66 |
|
|
path: `/catalog`,
|
67 |
|
|
method: "POST",
|
68 |
|
|
body: data,
|
69 |
|
|
type: ContentType.Json,
|
70 |
|
|
...params,
|
71 |
|
|
});
|
72 |
|
|
}
|