News for hackers. Stuff that matters.
Re:The Case for C# and .NET by mccorrinall on Wednesday July 27, 2022 @09:14AM (#32250011)
You are actually right. Today I opened the documentation again: https://docs.microsoft.com/en-us/aspnet/core/web-api/route-t...

And it says right at the bottom, that OpenAPI and model binding is not supported in their route to code feature.

I initially googled how to create a simple json api, and that’s the documentation which I found. Looks really easy in the beginning, but after you’re done with your routes, you’ll read at the end of the documentation, that OpenAPI generation, model binding etc is not supported. I blame that the guide‘s title is misleading and - of course - that I should’ve read till the end before actually following any step of that tutorial.

There are no comments on this comment yet.