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

Update OpenAPI #682

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
135 changes: 135 additions & 0 deletions api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,128 @@
}
}
}
},
"/api/v1/workspaces/{workspace_name}/system-prompt": {
"get": {
"tags": [
"CodeGate API",
"Workspaces"
],
"summary": "Get Workspace System Prompt",
"description": "Get the system prompt for a workspace.",
"operationId": "v1_get_workspace_system_prompt",
"parameters": [
{
"name": "workspace_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Workspace Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SystemPrompt"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"tags": [
"CodeGate API",
"Workspaces"
],
"summary": "Set Workspace System Prompt",
"operationId": "v1_set_workspace_system_prompt",
"parameters": [
{
"name": "workspace_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Workspace Name"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SystemPrompt"
}
}
}
},
"responses": {
"204": {
"description": "Successful Response"
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"tags": [
"CodeGate API",
"Workspaces"
],
"summary": "Delete Workspace System Prompt",
"operationId": "v1_delete_workspace_system_prompt",
"parameters": [
{
"name": "workspace_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Workspace Name"
}
}
],
"responses": {
"204": {
"description": "Successful Response"
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
},
"components": {
Expand Down Expand Up @@ -710,6 +832,19 @@
"title": "QuestionAnswer",
"description": "Represents a question and answer pair."
},
"SystemPrompt": {
"properties": {
"prompt": {
"type": "string",
"title": "Prompt"
}
},
"type": "object",
"required": [
"prompt"
],
"title": "SystemPrompt"
},
"ValidationError": {
"properties": {
"loc": {
Expand Down