Projekt

Obecné

Profil

Stáhnout (1.91 KB) Statistiky
| Větev: | Tag: | Revize:
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 { CatalogDto } from "./data-contracts";
13
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
  updateCatalogEntry = (id: string, data: CatalogDto, params: RequestParams = {}) =>
24
    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
    this.request<CatalogDto[], any>({
53
      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
  addCatalogEntry = (data: CatalogDto, params: RequestParams = {}) =>
65
    this.request<void, any>({
66
      path: `/catalog`,
67
      method: "POST",
68
      body: data,
69
      type: ContentType.Json,
70
      ...params,
71
    });
72
}