From c0df009d1a68b92b834ab7551a77c254b0683950 Mon Sep 17 00:00:00 2001 From: Jacob Schmidt Date: Tue, 24 Feb 2026 20:40:32 -0600 Subject: [PATCH] Removed Journal.API project --- Journal.Api/Journal.Api.csproj | 17 ------------- Journal.Api/Journal.Api.http | 24 ------------------ Journal.Api/Program.cs | 29 ---------------------- Journal.Api/Properties/launchSettings.json | 23 ----------------- Journal.Api/appsettings.Development.json | 8 ------ Journal.Api/appsettings.json | 9 ------- Journal.slnx | 1 - 7 files changed, 111 deletions(-) delete mode 100644 Journal.Api/Journal.Api.csproj delete mode 100644 Journal.Api/Journal.Api.http delete mode 100644 Journal.Api/Program.cs delete mode 100644 Journal.Api/Properties/launchSettings.json delete mode 100644 Journal.Api/appsettings.Development.json delete mode 100644 Journal.Api/appsettings.json diff --git a/Journal.Api/Journal.Api.csproj b/Journal.Api/Journal.Api.csproj deleted file mode 100644 index 17d3d94..0000000 --- a/Journal.Api/Journal.Api.csproj +++ /dev/null @@ -1,17 +0,0 @@ - - - - net10.0 - enable - enable - - - - - - - - - - - diff --git a/Journal.Api/Journal.Api.http b/Journal.Api/Journal.Api.http deleted file mode 100644 index 4ca4b1b..0000000 --- a/Journal.Api/Journal.Api.http +++ /dev/null @@ -1,24 +0,0 @@ -@Journal.Api_HostAddress = http://localhost:5014 - -GET {{Journal.Api_HostAddress}}/health -Accept: application/json - -### - -POST {{Journal.Api_HostAddress}}/api/command -Content-Type: application/json - -{ - "action": "config.get", - "payload": {} -} - -### - -POST {{Journal.Api_HostAddress}}/api/command -Content-Type: application/json - -{ - "action": - -### diff --git a/Journal.Api/Program.cs b/Journal.Api/Program.cs deleted file mode 100644 index d1f9cae..0000000 --- a/Journal.Api/Program.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System.Text.Json; -using Journal.Core; - -var builder = WebApplication.CreateBuilder(args); -builder.Services.AddOpenApi(); -builder.Services.AddFragmentServices(); -builder.Services.AddSingleton(); - -var app = builder.Build(); - -if (app.Environment.IsDevelopment()) - app.MapOpenApi(); - -app.MapGet("/health", () => Results.Json(new { ok = true, data = "healthy" })); -app.MapGet("/healthz", () => Results.Json(new { ok = true, data = "healthy" })); -app.MapGet("/api/health", () => Results.Json(new { ok = true, data = "healthy" })); - -// Mirrors sidecar transport semantics over HTTP. -// request body is passed directly to Entry.HandleCommandAsync so malformed JSON -// and payload errors return the same {ok:false,error} envelope as sidecar mode. -app.MapPost("/api/command", async (HttpRequest request, Entry entry) => -{ - using var reader = new StreamReader(request.Body); - var body = await reader.ReadToEndAsync(); - var response = await entry.HandleCommandAsync(body); - return Results.Content(response, "application/json"); -}); - -app.Run(); diff --git a/Journal.Api/Properties/launchSettings.json b/Journal.Api/Properties/launchSettings.json deleted file mode 100644 index 76f7662..0000000 --- a/Journal.Api/Properties/launchSettings.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "$schema": "https://json.schemastore.org/launchsettings.json", - "profiles": { - "http": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": false, - "applicationUrl": "http://localhost:5014", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - }, - "https": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": false, - "applicationUrl": "https://localhost:7086;http://localhost:5014", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" - } - } - } -} diff --git a/Journal.Api/appsettings.Development.json b/Journal.Api/appsettings.Development.json deleted file mode 100644 index 0c208ae..0000000 --- a/Journal.Api/appsettings.Development.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - } -} diff --git a/Journal.Api/appsettings.json b/Journal.Api/appsettings.json deleted file mode 100644 index 10f68b8..0000000 --- a/Journal.Api/appsettings.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "Logging": { - "LogLevel": { - "Default": "Information", - "Microsoft.AspNetCore": "Warning" - } - }, - "AllowedHosts": "*" -} diff --git a/Journal.slnx b/Journal.slnx index 3e7d483..dfef454 100644 --- a/Journal.slnx +++ b/Journal.slnx @@ -1,5 +1,4 @@ -