How to format response data as XML or JSON, based on the request URL in ASP.NET Core

How to format response data as XML or JSON, based on the request URL in ASP.NET Core

More to explore

Based on this image's title: “How to format response data as XML or JSON, based on the request URL in ASP.NET Core