linkrs-server 0.1.0

Linkrs network service layer (HTTP/gRPC)
Documentation
use axum::{http::StatusCode, response::Json};
use serde_json::json;

#[utoipa::path(
    get,
    path = "/v1/health",
    tag = "Health",
    responses(
        (status = 200, body = serde_json::Value, description = "Service health status"),
        (status = 500, description = "Internal error")
    )
)]
pub async fn check() -> (StatusCode, Json<serde_json::Value>) {
    (
        StatusCode::OK,
        Json(json!({
            "status": "healthy",
            "service": "linkrs",
            "version": env!("CARGO_PKG_VERSION"),
        })),
    )
}