Skip to content

Commit ea09fed

Browse files
fedorgaurabirb
authored andcommitted
add tests for stations api
1 parent 3774a30 commit ea09fed

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

test/examples/stations.ts

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
/**
2+
* This file was auto-generated by openapi-typescript.
3+
* Do not make direct changes to the file.
4+
*/
5+
6+
export interface paths {
7+
"/stations": {
8+
post: operations["create_station_stations_post"];
9+
};
10+
}
11+
12+
export interface components {
13+
schemas: {
14+
/** CreateStation */
15+
CreateStation: {
16+
/** Name */
17+
name: string;
18+
/** Comment */
19+
comment?: string;
20+
};
21+
/** HTTPValidationError */
22+
HTTPValidationError: {
23+
/** Detail */
24+
detail?: components["schemas"]["ValidationError"][];
25+
};
26+
/** Station */
27+
Station: {
28+
/** Id */
29+
id: number;
30+
/** Name */
31+
name?: string;
32+
/** Comment */
33+
comment?: string;
34+
/**
35+
* Created At
36+
* Format: date-time
37+
*/
38+
created_at: string;
39+
/**
40+
* Updated At
41+
* Format: date-time
42+
*/
43+
updated_at?: string;
44+
/** Api Key */
45+
api_key: string;
46+
};
47+
/** ValidationError */
48+
ValidationError: {
49+
/** Location */
50+
loc: string[];
51+
/** Message */
52+
msg: string;
53+
/** Error Type */
54+
type: string;
55+
};
56+
};
57+
}
58+
59+
export interface operations {
60+
create_station_stations_post: {
61+
parameters: {
62+
header: {
63+
"user-jwt"?: string;
64+
};
65+
};
66+
responses: {
67+
/** Successful Response */
68+
200: {
69+
content: {
70+
"application/json": components["schemas"]["Station"];
71+
};
72+
};
73+
/** Validation Error */
74+
422: {
75+
content: {
76+
"application/json": components["schemas"]["HTTPValidationError"];
77+
};
78+
};
79+
};
80+
requestBody: {
81+
content: {
82+
"application/json": components["schemas"]["CreateStation"];
83+
};
84+
};
85+
};
86+
}
87+
88+
export interface external {}

0 commit comments

Comments
 (0)