-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoperations.generated.ts
56 lines (52 loc) · 1.48 KB
/
operations.generated.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* eslint-disable */
import * as schemas from "./schemas.generated.js";
export namespace GetUsersUserId {
export const method = "get";
export const path = "/users/{userId}";
export type PathParameters = { userId: number };
export type QueryParameters = void;
export type RequestTypes = void;
export type ResponseTypes = { 200: schemas.User } & { 404: void };
}
export namespace PatchUsersUserId {
export const method = "patch";
export const path = "/users/{userId}";
export type PathParameters = { userId: number };
export type QueryParameters = void;
export type RequestTypes = {
"application/json": {
firstName?: string;
lastName?: string;
email?: string;
dateOfBirth?: string;
};
};
export type ResponseTypes = { 200: schemas.User } & { 404: void } & {
409: void;
};
}
export namespace PostUser {
export const method = "post";
export const path = "/user";
export type PathParameters = void;
export type QueryParameters = void;
export type RequestTypes = {
"application/json": {
firstName: string;
lastName: string;
email: string;
dateOfBirth: string;
};
};
export type ResponseTypes = { 200: schemas.User } & { 400: void } & {
409: void;
};
}
export namespace GetFoo {
export const method = "get";
export const path = "/foo";
export type PathParameters = void;
export type QueryParameters = void;
export type RequestTypes = void;
export type ResponseTypes = { 200: schemas.Foo };
}