Create LLM Provider Admin API Endpoints #129

Closed
opened 2026-01-30 21:28:50 +00:00 by jason.woltje · 0 comments
Owner

Implement REST API endpoints for LLM provider management.

Objective: Allow admin users to manage LLM provider instances via API.

Tasks:

  • Create llm.controller.ts
  • Add endpoints: GET /llm/providers, POST /llm/providers, PATCH /llm/providers/:id, DELETE /llm/providers/:id
  • Add DTOs for create/update operations
  • Implement RBAC guards (admin only)
  • Add validation with class-validator
  • Write E2E tests

API Endpoints:

  • GET /llm/providers - List all providers
  • GET /llm/providers/:id - Get provider details
  • POST /llm/providers - Create new provider instance
  • PATCH /llm/providers/:id - Update provider
  • DELETE /llm/providers/:id - Delete provider
  • POST /llm/providers/:id/test - Test provider connection

Acceptance Criteria:

  • All CRUD operations work
  • Proper validation and error handling
  • Admin-only access enforced
  • E2E tests pass

Related: Epic #121, Phase 1 LLM Abstraction
Depends on: #126, #128 (manager, schema)

Implement REST API endpoints for LLM provider management. Objective: Allow admin users to manage LLM provider instances via API. Tasks: - Create llm.controller.ts - Add endpoints: GET /llm/providers, POST /llm/providers, PATCH /llm/providers/:id, DELETE /llm/providers/:id - Add DTOs for create/update operations - Implement RBAC guards (admin only) - Add validation with class-validator - Write E2E tests API Endpoints: - GET /llm/providers - List all providers - GET /llm/providers/:id - Get provider details - POST /llm/providers - Create new provider instance - PATCH /llm/providers/:id - Update provider - DELETE /llm/providers/:id - Delete provider - POST /llm/providers/:id/test - Test provider connection Acceptance Criteria: - All CRUD operations work - Proper validation and error handling - Admin-only access enforced - E2E tests pass Related: Epic #121, Phase 1 LLM Abstraction Depends on: #126, #128 (manager, schema)
jason.woltje added the apiapip1phase-1 labels 2026-01-30 21:28:50 +00:00
jason.woltje added this to the M4-LLM (0.0.4) milestone 2026-01-30 23:40:48 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaic/stack#129