|
| 1 | +/** |
| 2 | + * This file was auto-generated by openapi-typescript. |
| 3 | + * Do not make direct changes to the file. |
| 4 | + */ |
| 5 | + |
| 6 | + |
| 7 | +export interface paths { |
| 8 | + "/breeds": { |
| 9 | + /** |
| 10 | + * Get a list of breeds |
| 11 | + * @description Returns a a list of breeds |
| 12 | + */ |
| 13 | + get: operations["getBreeds"]; |
| 14 | + }; |
| 15 | + "/fact": { |
| 16 | + /** |
| 17 | + * Get Random Fact |
| 18 | + * @description Returns a random fact |
| 19 | + */ |
| 20 | + get: operations["getRandomFact"]; |
| 21 | + }; |
| 22 | + "/facts": { |
| 23 | + /** |
| 24 | + * Get a list of facts |
| 25 | + * @description Returns a a list of facts |
| 26 | + */ |
| 27 | + get: operations["getFacts"]; |
| 28 | + }; |
| 29 | +} |
| 30 | + |
| 31 | +export type webhooks = Record<string, never>; |
| 32 | + |
| 33 | +export interface components { |
| 34 | + schemas: { |
| 35 | + /** |
| 36 | + * Breed model |
| 37 | + * @description Breed |
| 38 | + */ |
| 39 | + Breed: { |
| 40 | + /** |
| 41 | + * Breed |
| 42 | + * Format: string |
| 43 | + * @description Breed |
| 44 | + */ |
| 45 | + breed?: string; |
| 46 | + /** |
| 47 | + * Country |
| 48 | + * Format: string |
| 49 | + * @description Country |
| 50 | + */ |
| 51 | + country?: string; |
| 52 | + /** |
| 53 | + * Origin |
| 54 | + * Format: string |
| 55 | + * @description Origin |
| 56 | + */ |
| 57 | + origin?: string; |
| 58 | + /** |
| 59 | + * Coat |
| 60 | + * Format: string |
| 61 | + * @description Coat |
| 62 | + */ |
| 63 | + coat?: string; |
| 64 | + /** |
| 65 | + * Pattern |
| 66 | + * Format: string |
| 67 | + * @description Pattern |
| 68 | + */ |
| 69 | + pattern?: string; |
| 70 | + }; |
| 71 | + /** |
| 72 | + * CatFact model |
| 73 | + * @description CatFact |
| 74 | + */ |
| 75 | + CatFact: { |
| 76 | + /** |
| 77 | + * Fact |
| 78 | + * Format: string |
| 79 | + * @description Fact |
| 80 | + */ |
| 81 | + fact?: string; |
| 82 | + /** |
| 83 | + * Length |
| 84 | + * Format: int32 |
| 85 | + * @description Length |
| 86 | + */ |
| 87 | + length?: number; |
| 88 | + }; |
| 89 | + Error: { |
| 90 | + code: number; |
| 91 | + message: string; |
| 92 | + }; |
| 93 | + }; |
| 94 | + responses: never; |
| 95 | + parameters: never; |
| 96 | + requestBodies: never; |
| 97 | + headers: never; |
| 98 | + pathItems: never; |
| 99 | +} |
| 100 | + |
| 101 | +export type external = Record<string, never>; |
| 102 | + |
| 103 | +export interface operations { |
| 104 | + |
| 105 | + /** |
| 106 | + * Get a list of breeds |
| 107 | + * @description Returns a a list of breeds |
| 108 | + */ |
| 109 | + getBreeds: { |
| 110 | + parameters: { |
| 111 | + query?: { |
| 112 | + /** @description limit the amount of results returned */ |
| 113 | + limit?: number; |
| 114 | + }; |
| 115 | + }; |
| 116 | + responses: { |
| 117 | + /** @description successful operation */ |
| 118 | + 200: { |
| 119 | + content: { |
| 120 | + "application/json": components["schemas"]["Breed"][]; |
| 121 | + }; |
| 122 | + }; |
| 123 | + /** @description error */ |
| 124 | + default: { |
| 125 | + content: { |
| 126 | + "application/json": components["schemas"]["Error"]; |
| 127 | + }; |
| 128 | + }; |
| 129 | + }; |
| 130 | + }; |
| 131 | + /** |
| 132 | + * Get Random Fact |
| 133 | + * @description Returns a random fact |
| 134 | + */ |
| 135 | + getRandomFact: { |
| 136 | + parameters: { |
| 137 | + query?: { |
| 138 | + /** @description maximum length of returned fact */ |
| 139 | + max_length?: number; |
| 140 | + }; |
| 141 | + }; |
| 142 | + responses: { |
| 143 | + /** @description successful operation */ |
| 144 | + 200: { |
| 145 | + content: { |
| 146 | + "application/json": components["schemas"]["CatFact"]; |
| 147 | + }; |
| 148 | + }; |
| 149 | + /** @description not found */ |
| 150 | + 404: { |
| 151 | + content: { |
| 152 | + "application/json": components["schemas"]["Error"]; |
| 153 | + }; |
| 154 | + }; |
| 155 | + /** @description error */ |
| 156 | + default: { |
| 157 | + content: { |
| 158 | + "application/json": components["schemas"]["Error"]; |
| 159 | + }; |
| 160 | + }; |
| 161 | + }; |
| 162 | + }; |
| 163 | + /** |
| 164 | + * Get a list of facts |
| 165 | + * @description Returns a a list of facts |
| 166 | + */ |
| 167 | + getFacts: { |
| 168 | + parameters: { |
| 169 | + query?: { |
| 170 | + /** @description maximum length of returned fact */ |
| 171 | + max_length?: number; |
| 172 | + /** @description limit the amount of results returned */ |
| 173 | + limit?: number; |
| 174 | + }; |
| 175 | + }; |
| 176 | + responses: { |
| 177 | + /** @description successful operation */ |
| 178 | + 200: { |
| 179 | + content: { |
| 180 | + "application/json": components["schemas"]["CatFact"][]; |
| 181 | + }; |
| 182 | + }; |
| 183 | + /** @description error */ |
| 184 | + default: { |
| 185 | + content: { |
| 186 | + "application/json": components["schemas"]["Error"]; |
| 187 | + }; |
| 188 | + }; |
| 189 | + }; |
| 190 | + }; |
| 191 | +} |
0 commit comments