A web service exposes functionality or data over a network. In ASP.NET Core, a minimal API can make a console program’s function available through a GET endpoint. section 3.0 section 3.1
ASCII-art service
A GET route accepts text and returns its ASCII-art rendering; an optional font query parameter selects a font. section 3.1 section 3.1
Listing 3.5 Program.cs with ASCII art request handling
using Figgle; #1
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/", () => "Hello World!");
app.MapGet("/{text}", #2
(string text) => #3
FiggleFonts.Standard.Render(text)); #4
app.Run();
See the route handler that passes text and an optional font to the rendering function. section 3.1





