Create Agent type configuration API endpoints #29

Closed
opened 2025-12-29 23:48:22 +00:00 by cardosofelipe · 0 comments

Description

Implement REST API endpoints for AgentType management.

Requirements

Endpoints

POST   /api/v1/agent-types              - Create agent type (admin)
GET    /api/v1/agent-types              - List all active types
GET    /api/v1/agent-types/{id}         - Get agent type details
GET    /api/v1/agent-types/slug/{slug}  - Get by slug
PATCH  /api/v1/agent-types/{id}         - Update type (admin)
DELETE /api/v1/agent-types/{id}         - Deactivate type (admin)

Authorization

  • Read endpoints: authenticated users
  • Write endpoints: superusers only

Response Schema

Include model configuration, MCP permissions, and instance counts.

Tests

  • All endpoints
  • Admin-only enforcement
  • Validation (model names, MCP servers)

Acceptance Criteria

  • All endpoints implemented
  • Admin authorization enforced
  • Model validation
  • Integration tests
  • OpenAPI schema updated

Dependencies

  • Depends on: #24 (AgentType entity)

Assignable To

backend-engineer agent

## Description Implement REST API endpoints for AgentType management. ## Requirements ### Endpoints ``` POST /api/v1/agent-types - Create agent type (admin) GET /api/v1/agent-types - List all active types GET /api/v1/agent-types/{id} - Get agent type details GET /api/v1/agent-types/slug/{slug} - Get by slug PATCH /api/v1/agent-types/{id} - Update type (admin) DELETE /api/v1/agent-types/{id} - Deactivate type (admin) ``` ### Authorization - Read endpoints: authenticated users - Write endpoints: superusers only ### Response Schema Include model configuration, MCP permissions, and instance counts. ### Tests - All endpoints - Admin-only enforcement - Validation (model names, MCP servers) ## Acceptance Criteria - [ ] All endpoints implemented - [ ] Admin authorization enforced - [ ] Model validation - [ ] Integration tests - [ ] OpenAPI schema updated ## Dependencies - Depends on: #24 (AgentType entity) ## Assignable To backend-engineer agent
cardosofelipe added the backendphase-1 labels 2025-12-29 23:49:59 +00:00
Sign in to join this conversation.