.NET 8 Minimal API return JSON string as Json without first deserialize into an object
If I have a string (which is already in JSON format) say
Versioning by header in Asp.Net Core Minimal API
I have an Asp.Net Core Minimal API web app. I want to version an endpoint using request header X-Api-Version
. Depending on the version I want to do different things. Something like this: