|
You are here |
www.darrenhorrocks.co.uk | ||
| | | | |
damienbod.com
|
|
| | | | | This post implements a basic ASP.NET Core API using .NET 9 and the Microsoft OpenAPI implementation. The OpenAPI Nuget package supports both Controller based APIs and minimal APIs. Until now, we used excellent solutions like NSwag to produce the API schemas which can be used to auto-generate client code. Code: https://github.com/damienbod/WebApiOpenApi Setup A .NET 9... | |
| | | | |
www.kallemarjokorpi.fi
|
|
| | | | | I gathered to this blog post a list of external libraries that I usually add to a greenfield .NET API project. | |
| | | | |
blog.codefarm.me
|
|
| | | | | Model validation is a crucial aspect of building robust ASP.NET Core applications, ensuring data integrity and providing a smooth user experience. This post explores the various mechanisms for validating data, from built-in attributes and custom validation logic to handling non-nullable reference types and top-level node validation. 1. Model state 2. Validation 3. Validation attributes 4. Error messages 5. Non-nullable reference types and [Required] attribute 6. Custom attributes 7. Refereces 1. Model state Model state represents data binding and validation errors that occur before action execution, which web apps typically handle by redisplaying pages, while ApiController-decorated Web APIs automatically return a 400 response. [ApiController] [Route("api/[c... | |
| | | | |
www.fearofoblivion.com
|
|
| | | A blog containing the thoughts and ideas of me | ||