Releases: carlosbrunetti/Respify
Releases · carlosbrunetti/Respify
v1.1.0
Release Notes for feature/added-result-methods Branch
New Features
-
Added
ToResultMethod:- Converts the
RespifyResponseobject to anObjectResult. - Sets the
StatusCodeof theObjectResultto match theRespifyResponse'sStatusCode.
- Converts the
-
Added
ToResultAsyncMethod:- Asynchronously converts the
RespifyResponseobject to anObjectResult. - Uses
Task.FromResultto create theObjectResultwith the sameStatusCodeas theRespifyResponse.
- Asynchronously converts the
These changes enhance the RespifyResponse class by providing synchronous and asynchronous methods to convert the response object to an ObjectResult, facilitating easier integration with ASP.NET Core MVC.
Tests
-
Test for
ToResultMethod:- Verifies that the
ToResultmethod correctly converts aRespifyResponseobject to anObjectResultwith the appropriateStatusCode.
- Verifies that the
-
Test for
ToResultAsyncMethod:- Verifies that the
ToResultAsyncmethod correctly converts aRespifyResponseobject to anObjectResultasynchronously with the appropriateStatusCode.
- Verifies that the
Class Property Changes
RespifyResponseClass:- Added
ToResultmethod. - Added
ToResultAsyncmethod.
- Added
v1.0.0
Release Notes
Version 1.0.0
New Features
- PaginatedResponse: Added
PaginatedResponse<T>class to handle paginated API responses. - NonPaginatedResponse: Added
NonPaginatedResponse<T>class to handle non-paginated API responses. - RespifyResponse: Added
RespifyResponse<T>class to create standardized API responses. - ResponseHelper: Added helper methods to generate success and failure responses.
Improvements
- Improved the structure and readability of the response classes.
- Added comprehensive usage examples in the
README.mdfile.
Bug Fixes
- Fixed minor issues in response serialization.
Known Issues
- No known issues at this time.
License
This project is licensed under the MIT License.