Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions aspnetcore/web-api/advanced/formatting.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
title: Format response data in ASP.NET Core Web API
ai-usage: ai-assisted
author: tdykstra
description: Learn how to format response data in ASP.NET Core Web API.
monikerRange: '>= aspnetcore-3.1'
ms.author: tdykstra
ms.custom: H1Hack27Feb2017
ms.date: 04/08/2022
ms.date: 01/07/2026
uid: web-api/advanced/formatting
---
# Format response data in ASP.NET Core Web API
Expand Down Expand Up @@ -97,7 +98,7 @@ If the Accept header contains `*/*`, the Header is ignored unless `RespectBrowse
Unlike typical API clients, web browsers supply `Accept` headers. Web browsers specify many formats, including wildcards. By default, when the framework detects that the request is coming from a browser:

* The `Accept` header is ignored.
* The content is returned in JSON, unless otherwise configured.
* The content is returned using the first registered output formatter that can handle the response type, unless otherwise configured.

This approach provides a more consistent experience across browsers when consuming APIs.

Expand Down Expand Up @@ -294,7 +295,7 @@ If the Accept header contains `*/*`, the Header is ignored unless `RespectBrowse
Unlike typical API clients, web browsers supply `Accept` headers. Web browsers specify many formats, including wildcards. By default, when the framework detects that the request is coming from a browser:

* The `Accept` header is ignored.
* The content is returned in JSON, unless otherwise configured.
* The content is returned using the first registered output formatter that can handle the response type, unless otherwise configured.

This approach provides a more consistent experience across browsers when consuming APIs.

Expand Down Expand Up @@ -529,7 +530,7 @@ If the Accept header contains `*/*`, the Header is ignored unless `RespectBrowse
Unlike typical API clients, web browsers supply `Accept` headers. Web browsers specify many formats, including wildcards. By default, when the framework detects that the request is coming from a browser:

* The `Accept` header is ignored.
* The content is returned in JSON, unless otherwise configured.
* The content is returned using the first registered output formatter that can handle the response type, unless otherwise configured.

This approach provides a more consistent experience across browsers when consuming APIs.

Expand Down