Skip to content

Add sample / improve docs when starting with an empty web api project #206

@jtuchel

Description

@jtuchel

Related to #202

The "getting started" section explains how to implement a handler. And the samples show how to work with the library in larger projects. But I wasn't able to find any documentation for the following case:

  • Create an empty web api project
  • The generated Program.cs contains
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();

// Remove the following minimal api line
// app.MapGet("/", () => "Hello World!");

app.Run();

At least I don't know what is required to register a handler. If you let me know I could work on a PR to improve the docs :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions