CODEX_ADK/BACKEND/Codex.Api/Endpoints
jean-philippe f5a5c5697c fix: Remove duplicate endpoint registrations breaking Swagger/OpenAPI generation
Resolves Swagger conflict causing OpenAPI export to fail with HTTP 500 error.

Root Cause:
- OpenHarbor.CQRS v8.1.0-rc1 auto-registers and auto-documents ALL ICommandHandler and IQueryHandler implementations
- ManualEndpointRegistration.cs contained duplicate registrations for:
  * Commands: CreateConversation, StartAgentExecution
  * Queries: GetAgentExecution, GetConversation
- Duplicate routes violated OpenAPI 3.0 requirement for unique method/path combinations

Changes:
- Removed duplicate command registrations (lines 30-92)
- Removed duplicate query registrations (lines 44-124)
- Added explanatory comments about framework auto-registration
- File reduced from ~450 lines to ~320 lines

Impact:
-  Swagger endpoint now returns HTTP 200 (was HTTP 500)
-  OpenAPI export successful: docs/openapi.json (34KB, was 524B error)
-  All 16 endpoints properly documented
-  Frontend team can now generate TypeScript client
-  export-openapi.sh script working correctly

Verified:
- Valid OpenAPI 3.0.1 JSON structure
- 6 commands + 4 queries + 6 simple endpoints = 16 total
- No more route conflicts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-26 20:19:58 -04:00
..
ManualEndpointRegistration.cs fix: Remove duplicate endpoint registrations breaking Swagger/OpenAPI generation 2025-10-26 20:19:58 -04:00
SimpleEndpoints.cs Initial commit: CODEX_ADK (Svrnty Console) MVP v1.0.0 2025-10-26 18:32:38 -04:00