Tag: api
All the articles with the tag "api".
-
Handling Enum Values as Strings in C# API Models
A practical pattern for working with enums in API request models - storing as strings while keeping type-safe enum logic throughout your codebase.
-
Property Getters vs Get Methods: When to Use Which
A detailed guide on choosing between property getters and get methods in object-oriented programming, with practical examples and best practices for API design.
-
Testing ProblemDetails responses in ASP.NET Core
A comprehensive guide to testing ProblemDetails responses in ASP.NET Core integration tests, ensuring proper error handling and RFC 7807 compliance.