Content-Length: 397132 | pFad | http://github.com/stacklok/codegate/pull/1236/files

2D Update OpenAPI by github-actions[bot] · Pull Request #1236 · stacklok/codegate · GitHub
Skip to content

Update OpenAPI #1236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
261 changes: 261 additions & 0 deletions api/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,205 @@
}
}
}
},
"/api/v1/personas": {
"get": {
"tags": [
"CodeGate API",
"Personas"
],
"summary": "List Personas",
"description": "List all personas.",
"operationId": "v1_list_personas",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/Persona"
},
"type": "array",
"title": "Response V1 List Personas"
}
}
}
}
}
},
"post": {
"tags": [
"CodeGate API",
"Personas"
],
"summary": "Create Persona",
"description": "Create a new persona.",
"operationId": "v1_create_persona",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PersonaRequest"
}
}
},
"required": true
},
"responses": {
"201": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Persona"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
},
"/api/v1/personas/{persona_name}": {
"get": {
"tags": [
"CodeGate API",
"Personas"
],
"summary": "Get Persona",
"description": "Get a persona by name.",
"operationId": "v1_get_persona",
"parameters": [
{
"name": "persona_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Persona Name"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Persona"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"put": {
"tags": [
"CodeGate API",
"Personas"
],
"summary": "Update Persona",
"description": "Update an existing persona.",
"operationId": "v1_update_persona",
"parameters": [
{
"name": "persona_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Persona Name"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PersonaUpdateRequest"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Persona"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
},
"delete": {
"tags": [
"CodeGate API",
"Personas"
],
"summary": "Delete Persona",
"description": "Delete a persona.",
"operationId": "v1_delete_persona",
"parameters": [
{
"name": "persona_name",
"in": "path",
"required": true,
"schema": {
"type": "string",
"title": "Persona Name"
}
}
],
"responses": {
"204": {
"description": "Successful Response"
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
},
"components": {
Expand Down Expand Up @@ -1825,6 +2024,68 @@
"title": "MuxRule",
"description": "Represents a mux rule for a provider."
},
"Persona": {
"properties": {
"id": {
"type": "string",
"title": "Id"
},
"name": {
"type": "string",
"title": "Name"
},
"description": {
"type": "string",
"title": "Description"
}
},
"type": "object",
"required": [
"id",
"name",
"description"
],
"title": "Persona",
"description": "Represents a persona object."
},
"PersonaRequest": {
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"description": {
"type": "string",
"title": "Description"
}
},
"type": "object",
"required": [
"name",
"description"
],
"title": "PersonaRequest",
"description": "Model for creating a new Persona."
},
"PersonaUpdateRequest": {
"properties": {
"new_name": {
"type": "string",
"title": "New Name"
},
"new_description": {
"type": "string",
"title": "New Description"
}
},
"type": "object",
"required": [
"new_name",
"new_description"
],
"title": "PersonaUpdateRequest",
"description": "Model for updating a Persona."
},
"ProviderAuthType": {
"type": "string",
"enum": [
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/stacklok/codegate/pull/1236/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy