|
1219 | 1219 | }
|
1220 | 1220 | }
|
1221 | 1221 | }
|
| 1222 | + }, |
| 1223 | + "/api/v1/personas": { |
| 1224 | + "get": { |
| 1225 | + "tags": [ |
| 1226 | + "CodeGate API", |
| 1227 | + "Personas" |
| 1228 | + ], |
| 1229 | + "summary": "List Personas", |
| 1230 | + "description": "List all personas.", |
| 1231 | + "operationId": "v1_list_personas", |
| 1232 | + "responses": { |
| 1233 | + "200": { |
| 1234 | + "description": "Successful Response", |
| 1235 | + "content": { |
| 1236 | + "application/json": { |
| 1237 | + "schema": { |
| 1238 | + "items": { |
| 1239 | + "$ref": "#/components/schemas/Persona" |
| 1240 | + }, |
| 1241 | + "type": "array", |
| 1242 | + "title": "Response V1 List Personas" |
| 1243 | + } |
| 1244 | + } |
| 1245 | + } |
| 1246 | + } |
| 1247 | + } |
| 1248 | + }, |
| 1249 | + "post": { |
| 1250 | + "tags": [ |
| 1251 | + "CodeGate API", |
| 1252 | + "Personas" |
| 1253 | + ], |
| 1254 | + "summary": "Create Persona", |
| 1255 | + "description": "Create a new persona.", |
| 1256 | + "operationId": "v1_create_persona", |
| 1257 | + "requestBody": { |
| 1258 | + "content": { |
| 1259 | + "application/json": { |
| 1260 | + "schema": { |
| 1261 | + "$ref": "#/components/schemas/PersonaRequest" |
| 1262 | + } |
| 1263 | + } |
| 1264 | + }, |
| 1265 | + "required": true |
| 1266 | + }, |
| 1267 | + "responses": { |
| 1268 | + "201": { |
| 1269 | + "description": "Successful Response", |
| 1270 | + "content": { |
| 1271 | + "application/json": { |
| 1272 | + "schema": { |
| 1273 | + "$ref": "#/components/schemas/Persona" |
| 1274 | + } |
| 1275 | + } |
| 1276 | + } |
| 1277 | + }, |
| 1278 | + "422": { |
| 1279 | + "description": "Validation Error", |
| 1280 | + "content": { |
| 1281 | + "application/json": { |
| 1282 | + "schema": { |
| 1283 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 1284 | + } |
| 1285 | + } |
| 1286 | + } |
| 1287 | + } |
| 1288 | + } |
| 1289 | + } |
| 1290 | + }, |
| 1291 | + "/api/v1/personas/{persona_name}": { |
| 1292 | + "get": { |
| 1293 | + "tags": [ |
| 1294 | + "CodeGate API", |
| 1295 | + "Personas" |
| 1296 | + ], |
| 1297 | + "summary": "Get Persona", |
| 1298 | + "description": "Get a persona by name.", |
| 1299 | + "operationId": "v1_get_persona", |
| 1300 | + "parameters": [ |
| 1301 | + { |
| 1302 | + "name": "persona_name", |
| 1303 | + "in": "path", |
| 1304 | + "required": true, |
| 1305 | + "schema": { |
| 1306 | + "type": "string", |
| 1307 | + "title": "Persona Name" |
| 1308 | + } |
| 1309 | + } |
| 1310 | + ], |
| 1311 | + "responses": { |
| 1312 | + "200": { |
| 1313 | + "description": "Successful Response", |
| 1314 | + "content": { |
| 1315 | + "application/json": { |
| 1316 | + "schema": { |
| 1317 | + "$ref": "#/components/schemas/Persona" |
| 1318 | + } |
| 1319 | + } |
| 1320 | + } |
| 1321 | + }, |
| 1322 | + "422": { |
| 1323 | + "description": "Validation Error", |
| 1324 | + "content": { |
| 1325 | + "application/json": { |
| 1326 | + "schema": { |
| 1327 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 1328 | + } |
| 1329 | + } |
| 1330 | + } |
| 1331 | + } |
| 1332 | + } |
| 1333 | + }, |
| 1334 | + "put": { |
| 1335 | + "tags": [ |
| 1336 | + "CodeGate API", |
| 1337 | + "Personas" |
| 1338 | + ], |
| 1339 | + "summary": "Update Persona", |
| 1340 | + "description": "Update an existing persona.", |
| 1341 | + "operationId": "v1_update_persona", |
| 1342 | + "parameters": [ |
| 1343 | + { |
| 1344 | + "name": "persona_name", |
| 1345 | + "in": "path", |
| 1346 | + "required": true, |
| 1347 | + "schema": { |
| 1348 | + "type": "string", |
| 1349 | + "title": "Persona Name" |
| 1350 | + } |
| 1351 | + } |
| 1352 | + ], |
| 1353 | + "requestBody": { |
| 1354 | + "required": true, |
| 1355 | + "content": { |
| 1356 | + "application/json": { |
| 1357 | + "schema": { |
| 1358 | + "$ref": "#/components/schemas/PersonaUpdateRequest" |
| 1359 | + } |
| 1360 | + } |
| 1361 | + } |
| 1362 | + }, |
| 1363 | + "responses": { |
| 1364 | + "200": { |
| 1365 | + "description": "Successful Response", |
| 1366 | + "content": { |
| 1367 | + "application/json": { |
| 1368 | + "schema": { |
| 1369 | + "$ref": "#/components/schemas/Persona" |
| 1370 | + } |
| 1371 | + } |
| 1372 | + } |
| 1373 | + }, |
| 1374 | + "422": { |
| 1375 | + "description": "Validation Error", |
| 1376 | + "content": { |
| 1377 | + "application/json": { |
| 1378 | + "schema": { |
| 1379 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 1380 | + } |
| 1381 | + } |
| 1382 | + } |
| 1383 | + } |
| 1384 | + } |
| 1385 | + }, |
| 1386 | + "delete": { |
| 1387 | + "tags": [ |
| 1388 | + "CodeGate API", |
| 1389 | + "Personas" |
| 1390 | + ], |
| 1391 | + "summary": "Delete Persona", |
| 1392 | + "description": "Delete a persona.", |
| 1393 | + "operationId": "v1_delete_persona", |
| 1394 | + "parameters": [ |
| 1395 | + { |
| 1396 | + "name": "persona_name", |
| 1397 | + "in": "path", |
| 1398 | + "required": true, |
| 1399 | + "schema": { |
| 1400 | + "type": "string", |
| 1401 | + "title": "Persona Name" |
| 1402 | + } |
| 1403 | + } |
| 1404 | + ], |
| 1405 | + "responses": { |
| 1406 | + "204": { |
| 1407 | + "description": "Successful Response" |
| 1408 | + }, |
| 1409 | + "422": { |
| 1410 | + "description": "Validation Error", |
| 1411 | + "content": { |
| 1412 | + "application/json": { |
| 1413 | + "schema": { |
| 1414 | + "$ref": "#/components/schemas/HTTPValidationError" |
| 1415 | + } |
| 1416 | + } |
| 1417 | + } |
| 1418 | + } |
| 1419 | + } |
| 1420 | + } |
1222 | 1421 | }
|
1223 | 1422 | },
|
1224 | 1423 | "components": {
|
|
1825 | 2024 | "title": "MuxRule",
|
1826 | 2025 | "description": "Represents a mux rule for a provider."
|
1827 | 2026 | },
|
| 2027 | + "Persona": { |
| 2028 | + "properties": { |
| 2029 | + "id": { |
| 2030 | + "type": "string", |
| 2031 | + "title": "Id" |
| 2032 | + }, |
| 2033 | + "name": { |
| 2034 | + "type": "string", |
| 2035 | + "title": "Name" |
| 2036 | + }, |
| 2037 | + "description": { |
| 2038 | + "type": "string", |
| 2039 | + "title": "Description" |
| 2040 | + } |
| 2041 | + }, |
| 2042 | + "type": "object", |
| 2043 | + "required": [ |
| 2044 | + "id", |
| 2045 | + "name", |
| 2046 | + "description" |
| 2047 | + ], |
| 2048 | + "title": "Persona", |
| 2049 | + "description": "Represents a persona object." |
| 2050 | + }, |
| 2051 | + "PersonaRequest": { |
| 2052 | + "properties": { |
| 2053 | + "name": { |
| 2054 | + "type": "string", |
| 2055 | + "title": "Name" |
| 2056 | + }, |
| 2057 | + "description": { |
| 2058 | + "type": "string", |
| 2059 | + "title": "Description" |
| 2060 | + } |
| 2061 | + }, |
| 2062 | + "type": "object", |
| 2063 | + "required": [ |
| 2064 | + "name", |
| 2065 | + "description" |
| 2066 | + ], |
| 2067 | + "title": "PersonaRequest", |
| 2068 | + "description": "Model for creating a new Persona." |
| 2069 | + }, |
| 2070 | + "PersonaUpdateRequest": { |
| 2071 | + "properties": { |
| 2072 | + "new_name": { |
| 2073 | + "type": "string", |
| 2074 | + "title": "New Name" |
| 2075 | + }, |
| 2076 | + "new_description": { |
| 2077 | + "type": "string", |
| 2078 | + "title": "New Description" |
| 2079 | + } |
| 2080 | + }, |
| 2081 | + "type": "object", |
| 2082 | + "required": [ |
| 2083 | + "new_name", |
| 2084 | + "new_description" |
| 2085 | + ], |
| 2086 | + "title": "PersonaUpdateRequest", |
| 2087 | + "description": "Model for updating a Persona." |
| 2088 | + }, |
1828 | 2089 | "ProviderAuthType": {
|
1829 | 2090 | "type": "string",
|
1830 | 2091 | "enum": [
|
|
0 commit comments