Code2Gether-Discord / Congo

Generic web store learning project that consists of three ASP.NET Core projects
https://code2gether-congo.azurewebsites.net/
11 stars 2 forks source link

Add validation for WebApi requests #51

Closed ThorstenSauter closed 3 years ago

ThorstenSauter commented 3 years ago

In order to validate input to the WebApi project endpoints, we should implement central validation. To that effect I'm proposing to add FluentValidation to the WebApi project. This would require us to add validators for the various requests and to embed validation to the request processing.

Discussion about this will also include how we want to handle not only validation errors, but errors in the WebApi as a whole as well.