Revize 9ac8d8a0
Přidáno uživatelem Michal Schwob před téměř 3 roky(ů)
frontend/.env | ||
---|---|---|
1 | 1 |
REACT_APP_API_BASE_URL=/api |
2 |
REACT_APP_DEV_ENV=true |
|
2 |
REACT_APP_DEV_ENV=false |
frontend/src/swagger/CatalogItems.ts | ||
---|---|---|
61 | 61 |
* No description |
62 | 62 |
* |
63 | 63 |
* @tags catalog-controller |
64 |
* @name GetCatalog |
|
64 |
* @name GetCatalog1
|
|
65 | 65 |
* @summary returns catalog items based on filter |
66 | 66 |
* @request GET:/catalog-items |
67 | 67 |
*/ |
68 |
getCatalog = ( |
|
68 |
getCatalog1 = (
|
|
69 | 69 |
query?: { name?: string; country?: string; type?: string; writtenForm?: string }, |
70 | 70 |
params: RequestParams = {}, |
71 | 71 |
) => |
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 |
} |
frontend/src/swagger/data-contracts.ts | ||
---|---|---|
57 | 57 |
text?: string; |
58 | 58 |
foundCatalogItems?: CatalogItemDto[][]; |
59 | 59 |
} |
60 |
|
|
61 |
export interface ExternalCatalogItemDto { |
|
62 |
/** @format uuid */ |
|
63 |
id?: string; |
|
64 |
externalSource?: "PLEIADES" | "GEONAMES" | "CIGS"; |
|
65 |
|
|
66 |
/** @format double */ |
|
67 |
latitude?: number; |
|
68 |
|
|
69 |
/** @format double */ |
|
70 |
longitude?: number; |
|
71 |
locationPrecision?: string; |
|
72 |
|
|
73 |
/** @format int32 */ |
|
74 |
maxDate?: number; |
|
75 |
|
|
76 |
/** @format int32 */ |
|
77 |
minDate?: number; |
|
78 |
timePeriodKeys?: string; |
|
79 |
pid?: string; |
|
80 |
names?: string[]; |
|
81 |
featureCode?: string; |
|
82 |
country?: string; |
|
83 |
|
|
84 |
/** @format int32 */ |
|
85 |
accuracy?: number; |
|
86 |
|
|
87 |
/** @format int64 */ |
|
88 |
geonameId?: number; |
|
89 |
|
|
90 |
/** @format int64 */ |
|
91 |
pleiadesId?: number; |
|
92 |
|
|
93 |
/** @format int64 */ |
|
94 |
osmId?: number; |
|
95 |
} |
Také k dispozici: Unified diff
Newly swagger generated files
re #9627