Skip to content

Releases: carlosbrunetti/Respify

v1.1.0

28 Dec 16:34
eed8f12

Choose a tag to compare

Release Notes for feature/added-result-methods Branch

New Features

  • Added ToResult Method:

    • Converts the RespifyResponse object to an ObjectResult.
    • Sets the StatusCode of the ObjectResult to match the RespifyResponse's StatusCode.
  • Added ToResultAsync Method:

    • Asynchronously converts the RespifyResponse object to an ObjectResult.
    • Uses Task.FromResult to create the ObjectResult with the same StatusCode as the RespifyResponse.

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 ToResult Method:

    • Verifies that the ToResult method correctly converts a RespifyResponse object to an ObjectResult with the appropriate StatusCode.
  • Test for ToResultAsync Method:

    • Verifies that the ToResultAsync method correctly converts a RespifyResponse object to an ObjectResult asynchronously with the appropriate StatusCode.

Class Property Changes

  • RespifyResponse Class:
    • Added ToResult method.
    • Added ToResultAsync method.

v1.0.0

22 Dec 21:40
76e96fd

Choose a tag to compare

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.md file.

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.