asp.net core

asp.net core

ASP.NET Core MVC Action Priority using ActionConstraints

When developing API Controllers in ASP.NET Core you may run into the following error when trying to use multiple HTTP verbs of the same type in a controller (or in a base controller if using inheritence) AmbiguousMatchException: The request matched multiple endpoints. Normally the solution is to mod…

4 min read
asp.net core

Manually creating a Swagger document in C# using Microsoft OpenAPI.NET

If you are using the OpenAPI standard for your Rest API's on .NET Core you will probably be familiar with the Swagger tools that enable you to quickly generate definitions for your Web API endpoints. With a few lines of code you can enable Swagger and Swagger-UI using the awesome Swashbuckle project…

2 min read