Skip to content

Releases: Vlancy/LAPI-response

v1.3.8

21 Feb 08:35
c1bc83e

Choose a tag to compare

What's Changed

  • Refactor API error handling and response

v1.3.7

25 Jan 14:14
914e1ab

Choose a tag to compare

What's Changed

Updated error handling by replacing code with errorCode for better semantic clarity. Enhanced Handler logic to support dynamic error code resolution, improving modularity and extensibility.

v1.3.6: Merge pull request #63 from i3rror/dev

23 Dec 09:29
73682a2

Choose a tag to compare

What's Changed

  • Update pagination and exception handling logic
  • Add apiCreated method for handling HTTP 201 responses
  • Refactor API response handling and exception management
  • Update dependencies and enhance API response handling

Full Changelog: v1.3.5...v1.3.6

v1.3.5

30 Jun 21:48
fe67e67

Choose a tag to compare

What's Changed

  • Refactor: Enhanced Handler logic by improving validation error responses and introducing a getErrorCode helper method for consistent error code handling.

  • Refactor: Improved error collection structure and streamlined invalidJson handling logic in Handler.

  • Refactor: Modified fallback logic to use exception code for non-HTTP exceptions in API responses.

  • Refactor: Removed fallback to exception code for non-HTTP exceptions to standardize status code handling.

v1.3.4

14 Jun 08:29
3cc6fcc

Choose a tag to compare

What's Changed

  • Refactor: Enhance API response handling by standardizing headers inclusion, simplifying exception rendering, and updating helper methods accordingly

v1.3.3.3

13 Jun 22:34
6566fd0

Choose a tag to compare

What's Changed

  • Refactor: Simplify exception handlers by removing unused imports and unifying server error handling logic

v1.3.3.2

13 Jun 17:48
336b8b9

Choose a tag to compare

What's Changed

  • Refactor: Simplify APIRequestValidator by removing the unused errorMessage property and ensuring null-safe handling in apiBadRequest
  • Refactor: Replace apiUnauthenticated with apiForbidden in APIRequestValidator to improve response accuracy
  • Refactor: Simplify APIRequestValidator by removing the unused errorMessage property and ensuring null-safe handling in apiBadRequest

v1.3.3.1

12 Jun 19:56
3e7ab96

Choose a tag to compare

What's Changed

  • Enhance APIRequestValidator to support custom error messages

v1.3.3

11 Jun 20:25
c775729

Choose a tag to compare

What's Changed

  • [fix] Bad request error status
  • Standardize bash command formatting in README.md
  • Standardize exception handling and JSON error responses
  • Refactor parameter types and names for consistency
  • Add API response service and helper utilities
  • Refactor: Replace APIResponse with ApiResponse references
  • Update README: Improve structure, add features, and usage examples
  • [fix] Bad request error status
  • Add comprehensive unit tests for API response helpers and services

v1.3.2

08 Feb 15:28
dcf3d12

Choose a tag to compare

What's Changed

  • Set option to hide pagination links in API responses
  • Add APIRequestValidator trait for request validation handling
  • Add API validation section to README
  • Update APIRequestValidator to return JsonResponse
  • Update APIRequestValidator to return JsonResponse
  • Allow null data in apiOk() method