|
|
|
|
|
by mccorrinall
1425 days ago
|
|
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. |
|