Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Update OpenAPI #1100

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,55 @@
}
}
},
"/api/v1/workspaces/{provider_id}": {
"get": {
"tags": [
"CodeGate API",
"Workspaces"
],
"summary": "List Workspaces By Provider",
"description": "List workspaces by provider ID.",
"operationId": "v1_list_workspaces_by_provider",
"parameters": [
{
"name": "provider_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid",
"title": "Provider Id"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/WorkspaceWithModel"
},
"title": "Response V1 List Workspaces By Provider"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/alerts_notification": {
"get": {
"tags": [
Expand Down Expand Up @@ -1884,6 +1933,31 @@
"muxing_rules"
],
"title": "WorkspaceConfig"
},
"WorkspaceWithModel": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]+$",
"title": "Name"
},
"provider_model_name": {
"type": "string",
"title": "Provider Model Name"
}
},
"type": "object",
"required": [
"id",
"name",
"provider_model_name"
],
"title": "WorkspaceWithModel",
"description": "Returns a workspace ID with model name"
}
}
}
Expand Down