About 11,500 results
Open links in new tab
  1. Parameter binding in Minimal API applications | Microsoft Learn

    Oct 24, 2025 · To bind from body (as JSON) for these HTTP methods, bind explicitly with [FromBody] or read from the HttpRequest. The following example POST route handler uses a …

  2. FromBodyAttribute Class (Microsoft.AspNetCore.Mvc)

    [FromBody(EmptyBodyBehavior = EmptyBodyBehavior.Allow)] Body body ) => Remarks Binds a parameter or property to the request body. By default, ASP.NET Core MVC delegates the …

  3. 最小 API 应用程序中的参数绑定 | Microsoft Learn

    Oct 24, 2025 · ASP.NET Core 支持使用 IBindableFromHttpContext<TSelf> 接口在最小 API 中自定义参数绑定。 此接口通过 C# 11 的静态抽象成员引入,可用于创建可以直接在路由处理程 …

  4. Minimal APIs quick reference | Microsoft Learn

    This document: Provides a quick reference for minimal APIs. Is intended for experienced developers. For an introduction, see Tutorial: Create a minimal API with ASP.NET Core. The …

  5. Tutorial: Create a minimal API with ASP.NET Core

    Minimal APIs are architected to create HTTP APIs with minimal dependencies. They're ideal for microservices and apps that want to include only the minimum files, features, and …

  6. JsonPatchDocument problems with Minimal API in .NET6 / 7 …

    Aug 18, 2023 · First, JSON Patch support in ASP.NET Core web API is based on Newtonsoft.Json and requires the Microsoft.AspNetCore.Mvc.NewtonsoftJson NuGet …

  7. Route handlers in Minimal API apps | Microsoft Learn

    Jul 26, 2024 · Responses Create responses in Minimal API applications describes in detail how values returned from route handlers are converted into responses.

  8. Include OpenAPI metadata in an ASP.NET Core app

    Jun 12, 2025 · In minimal APIs, metadata can be collected from attributes but may also be set by using extension methods and other strategies, such as returning TypedResults from route …

  9. Web API 415: Unsupported Media Type - Microsoft Q&A

    Jul 8, 2022 · The content type should usually be on the request level. So that you are not specifying the content type on the parameters, but rather which binder to use. asp.net core …

  10. Minimal API クイック リファレンス | Microsoft Learn

    最小限の API のクイック リファレンスを提供します。 最小 API は次で構成されます。 次の表に、最小限の API で頻繁に使用されるミドルウェアの一部を示します。