Revize 4996b85f
Přidáno uživatelem Michal Schwob před asi 2 roky(ů)
frontend/src/swagger/Path.ts | ||
---|---|---|
10 | 10 |
*/ |
11 | 11 |
|
12 | 12 |
import { PathDto } from "./data-contracts"; |
13 |
import { HttpClient, RequestParams } from "./http-client"; |
|
13 |
import { ContentType, HttpClient, RequestParams } from "./http-client";
|
|
14 | 14 |
|
15 | 15 |
export class Path<SecurityDataType = unknown> extends HttpClient<SecurityDataType> { |
16 | 16 |
/** |
... | ... | |
18 | 18 |
* |
19 | 19 |
* @tags path-controller |
20 | 20 |
* @name GetPath |
21 |
* @request GET:/path |
|
21 |
* @summary returns path with highlighted text and found catalog items based on given text |
|
22 |
* @request POST:/path |
|
22 | 23 |
*/ |
23 |
getPath = (query: { pathDto: PathDto }, params: RequestParams = {}) =>
|
|
24 |
getPath = (data: PathDto, params: RequestParams = {}) =>
|
|
24 | 25 |
this.request<PathDto, any>({ |
25 | 26 |
path: `/path`, |
26 |
method: "GET", |
|
27 |
query: query, |
|
27 |
method: "POST", |
|
28 |
body: data, |
|
29 |
type: ContentType.Json, |
|
28 | 30 |
...params, |
29 | 31 |
}); |
30 | 32 |
} |
Také k dispozici: Unified diff
Newly swagger generated files
re #9627