This is the initial commit for the CODEX_ADK project, a full-stack AI agent management platform featuring: BACKEND (ASP.NET Core 8.0): - CQRS architecture with 6 commands and 7 queries - 16 API endpoints (all working and tested) - PostgreSQL database with 5 entities - AES-256 encryption for API keys - FluentValidation on all commands - Rate limiting and CORS configured - OpenAPI/Swagger documentation - Docker Compose setup (PostgreSQL + Ollama) FRONTEND (Flutter 3.x): - Dark theme with Svrnty branding - Collapsible sidebar navigation - CQRS API client with Result<T> error handling - Type-safe endpoints from OpenAPI schema - Multi-platform support (Web, iOS, Android, macOS, Linux, Windows) DOCUMENTATION: - Comprehensive API reference - Architecture documentation - Development guidelines for Claude Code - API integration guides - context-claude.md project overview Status: Backend ready (Grade A-), Frontend integration pending 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
31 lines
951 B
C#
31 lines
951 B
C#
using OpenHarbor.CQRS.Abstractions;
|
|
|
|
namespace Codex.CQRS.Queries;
|
|
|
|
/// <summary>
|
|
/// Health check query to verify API availability
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// This query is automatically exposed as a REST endpoint by OpenHarbor.CQRS framework.
|
|
/// Endpoint: POST /api/query/HealthQuery
|
|
/// </remarks>
|
|
public record HealthQuery
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Handles health check queries
|
|
/// </summary>
|
|
public class HealthQueryHandler : IQueryHandler<HealthQuery, bool>
|
|
{
|
|
/// <summary>
|
|
/// Executes the health check
|
|
/// </summary>
|
|
/// <param name="query">The health query request</param>
|
|
/// <param name="cancellationToken">Cancellation token</param>
|
|
/// <returns>Always returns true to indicate the API is healthy</returns>
|
|
/// <response code="200">API is healthy and operational</response>
|
|
public Task<bool> HandleAsync(HealthQuery query, CancellationToken cancellationToken = default)
|
|
=> Task.FromResult(true);
|
|
}
|