Repository navigation
Replies: 2 comments
|
Hello @csuzw, |
|
By default, If you need XML responses, you must register XML formatters. One way is to add MVC services: builder.Services
.AddControllers()
.AddXmlSerializerFormatters();However, Minimal API So in practice, XML
|
Uh oh!
There was an error while loading. Please reload this page.
I'm working on a .net 10 minimal api which on error returns Problem Details responses. There is an endpoint that needs to respond with XML. Is it possible to get a Problem Details response returned as XML and if so how? If I set the Accept header to application/xml I get no contents in the response at all.
All reactions