# OpenAPI Document Generation

The OpenAPI description ASP.NET Core builds from your endpoints.

## What is **OpenAPI Document Generation**?

ASP.NET Core builds its **OpenAPI document** from your endpoints, parameters, `TypedResults` and summaries. Keeping it accurate lets it serve as a contract that tests can compare against.

```csharp
app.MapGet("/recipes/{id:int}", Get)
   .WithName("GetRecipe")
   .WithSummary("One recipe by id. Anonymous.");
```

Level: Freelancer · [More ASP.NET Core terms at this level](https://www.ask-codey.com/glossary?category=aspnet-core&level=4)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/openapi-document-generation
