|
148 | 148 | }
|
149 | 149 | }
|
150 | 150 | },
|
151 |
| - "/api/v1/provider-endpoints/{provider_id}/models": { |
| 151 | + "/api/v1/provider-endpoints/{provider_name}/models": { |
152 | 152 | "get": {
|
153 | 153 | "tags": [
|
154 | 154 | "CodeGate API",
|
|
159 | 159 | "operationId": "v1_list_models_by_provider",
|
160 | 160 | "parameters": [
|
161 | 161 | {
|
162 |
| - "name": "provider_id", |
| 162 | + "name": "provider_name", |
163 | 163 | "in": "path",
|
164 | 164 | "required": true,
|
165 | 165 | "schema": {
|
166 | 166 | "type": "string",
|
167 |
| - "format": "uuid", |
168 |
| - "title": "Provider Id" |
| 167 | + "title": "Provider Name" |
169 | 168 | }
|
170 | 169 | }
|
171 | 170 | ],
|
|
240 | 239 | }
|
241 | 240 | }
|
242 | 241 | },
|
243 |
| - "delete": { |
| 242 | + "put": { |
244 | 243 | "tags": [
|
245 | 244 | "CodeGate API",
|
246 | 245 | "Providers"
|
247 | 246 | ],
|
248 |
| - "summary": "Delete Provider Endpoint", |
249 |
| - "description": "Delete a provider endpoint by id.", |
250 |
| - "operationId": "v1_delete_provider_endpoint", |
| 247 | + "summary": "Update Provider Endpoint", |
| 248 | + "description": "Update a provider endpoint by name.", |
| 249 | + "operationId": "v1_update_provider_endpoint", |
251 | 250 | "parameters": [
|
252 | 251 | {
|
253 | 252 | "name": "provider_name",
|
|
259 | 258 | }
|
260 | 259 | }
|
261 | 260 | ],
|
| 261 | + "requestBody": { |
| 262 | + "required": true, |
| 263 | + "content": { |
| 264 | + "application/json": { |
| 265 | + "schema": { |
| 266 | + "$ref": "#/components/schemas/ProviderEndpoint" |
| 267 | + } |
| 268 | + } |
| 269 | + } |
| 270 | + }, |
262 | 271 | "responses": {
|
263 | 272 | "200": {
|
264 | 273 | "description": "Successful Response",
|
265 | 274 | "content": {
|
266 | 275 | "application/json": {
|
267 |
| - "schema": {} |
| 276 | + "schema": { |
| 277 | + "$ref": "#/components/schemas/ProviderEndpoint" |
| 278 | + } |
268 | 279 | }
|
269 | 280 | }
|
270 | 281 | },
|
|
279 | 290 | }
|
280 | 291 | }
|
281 | 292 | }
|
282 |
| - } |
283 |
| - }, |
284 |
| - "/api/v1/provider-endpoints/{provider_id}/auth-material": { |
285 |
| - "put": { |
| 293 | + }, |
| 294 | + "delete": { |
286 | 295 | "tags": [
|
287 | 296 | "CodeGate API",
|
288 | 297 | "Providers"
|
289 | 298 | ],
|
290 |
| - "summary": "Configure Auth Material", |
291 |
| - "description": "Configure auth material for a provider.", |
292 |
| - "operationId": "v1_configure_auth_material", |
| 299 | + "summary": "Delete Provider Endpoint", |
| 300 | + "description": "Delete a provider endpoint by name.", |
| 301 | + "operationId": "v1_delete_provider_endpoint", |
293 | 302 | "parameters": [
|
294 | 303 | {
|
295 |
| - "name": "provider_id", |
| 304 | + "name": "provider_name", |
296 | 305 | "in": "path",
|
297 | 306 | "required": true,
|
298 | 307 | "schema": {
|
299 | 308 | "type": "string",
|
300 |
| - "format": "uuid", |
301 |
| - "title": "Provider Id" |
| 309 | + "title": "Provider Name" |
302 | 310 | }
|
303 | 311 | }
|
304 | 312 | ],
|
305 |
| - "requestBody": { |
306 |
| - "required": true, |
307 |
| - "content": { |
308 |
| - "application/json": { |
309 |
| - "schema": { |
310 |
| - "$ref": "#/components/schemas/ConfigureAuthMaterial" |
| 313 | + "responses": { |
| 314 | + "200": { |
| 315 | + "description": "Successful Response", |
| 316 | + "content": { |
| 317 | + "application/json": { |
| 318 | + "schema": {} |
311 | 319 | }
|
312 | 320 | }
|
313 |
| - } |
314 |
| - }, |
315 |
| - "responses": { |
316 |
| - "204": { |
317 |
| - "description": "Successful Response" |
318 | 321 | },
|
319 | 322 | "422": {
|
320 | 323 | "description": "Validation Error",
|
|
329 | 332 | }
|
330 | 333 | }
|
331 | 334 | },
|
332 |
| - "/api/v1/provider-endpoints/{provider_id}": { |
| 335 | + "/api/v1/provider-endpoints/{provider_name}/auth-material": { |
333 | 336 | "put": {
|
334 | 337 | "tags": [
|
335 | 338 | "CodeGate API",
|
336 | 339 | "Providers"
|
337 | 340 | ],
|
338 |
| - "summary": "Update Provider Endpoint", |
339 |
| - "description": "Update a provider endpoint by ID.", |
340 |
| - "operationId": "v1_update_provider_endpoint", |
| 341 | + "summary": "Configure Auth Material", |
| 342 | + "description": "Configure auth material for a provider.", |
| 343 | + "operationId": "v1_configure_auth_material", |
341 | 344 | "parameters": [
|
342 | 345 | {
|
343 |
| - "name": "provider_id", |
| 346 | + "name": "provider_name", |
344 | 347 | "in": "path",
|
345 | 348 | "required": true,
|
346 | 349 | "schema": {
|
347 | 350 | "type": "string",
|
348 |
| - "format": "uuid", |
349 |
| - "title": "Provider Id" |
| 351 | + "title": "Provider Name" |
350 | 352 | }
|
351 | 353 | }
|
352 | 354 | ],
|
|
355 | 357 | "content": {
|
356 | 358 | "application/json": {
|
357 | 359 | "schema": {
|
358 |
| - "$ref": "#/components/schemas/ProviderEndpoint" |
| 360 | + "$ref": "#/components/schemas/ConfigureAuthMaterial" |
359 | 361 | }
|
360 | 362 | }
|
361 | 363 | }
|
362 | 364 | },
|
363 | 365 | "responses": {
|
364 |
| - "200": { |
365 |
| - "description": "Successful Response", |
366 |
| - "content": { |
367 |
| - "application/json": { |
368 |
| - "schema": { |
369 |
| - "$ref": "#/components/schemas/ProviderEndpoint" |
370 |
| - } |
371 |
| - } |
372 |
| - } |
| 366 | + "204": { |
| 367 | + "description": "Successful Response" |
373 | 368 | },
|
374 | 369 | "422": {
|
375 | 370 | "description": "Validation Error",
|
|
391 | 386 | "Workspaces"
|
392 | 387 | ],
|
393 | 388 | "summary": "List Workspaces",
|
394 |
| - "description": "List all workspaces.\n\nArgs:\n provider_id (Optional[UUID]): Filter workspaces by provider ID. If provided,\n will return workspaces where models from the specified provider (e.g., OpenAI,\n Anthropic) have been used in workspace muxing rules. Note that you must\n refer to a provider by ID, not by name.\n\nReturns:\n ListWorkspacesResponse: A response object containing the list of workspaces.", |
| 389 | + "description": "List all workspaces.\n\nArgs:\n provider_name (Optional[str]): Filter workspaces by provider name. If provided,\n will return workspaces where models from the specified provider (e.g., OpenAI,\n Anthropic) have been used in workspace muxing rules.\n\nReturns:\n ListWorkspacesResponse: A response object containing the list of workspaces.", |
395 | 390 | "operationId": "v1_list_workspaces",
|
396 | 391 | "parameters": [
|
397 | 392 | {
|
398 |
| - "name": "provider_id", |
| 393 | + "name": "provider_name", |
399 | 394 | "in": "query",
|
400 | 395 | "required": false,
|
401 | 396 | "schema": {
|
402 | 397 | "anyOf": [
|
403 | 398 | {
|
404 |
| - "type": "string", |
405 |
| - "format": "uuid" |
| 399 | + "type": "string" |
406 | 400 | },
|
407 | 401 | {
|
408 | 402 | "type": "null"
|
409 | 403 | }
|
410 | 404 | ],
|
411 |
| - "title": "Provider Id" |
| 405 | + "title": "Provider Name" |
412 | 406 | }
|
413 | 407 | }
|
414 | 408 | ],
|
|
0 commit comments