- Loading...
Sponsored by Dometrain Courses—Get 30% off Dometrain Pro with code ANDREW30 and access the best courses for .NET Developers

My new book ASP.NET Core in Action, Third Edition is available now! It supports .NET 7.0, and is available as an eBook or paperback.

How to format response data as XML or JSON, based on the request URL in ASP.NET Core
In this post I'll show how to use the FormatFilter, so that you can specify the output format for an action using a URL suffix, e.g. /api/values.xml as XML.…

