Skip to content

API Update (Breaking-L)

Choose a tag to compare

@Mistralys Mistralys released this 08 Oct 07:09
· 1176 commits to main since this release

Included in this release:

  • API: Complete overhaul of the API handling.
  • API: Added an API method index to look up method names and classes.
  • API: Registered the method index in the main cache control.
  • API: Added an API method collection to access all methods.
  • API: Added APIMethodInterface.
  • API: Overhauled the base API method class, streamlined the request and response processes.
  • API: Added traits for the request and response types, e.g. JSONResponseTrait.
  • API: Implemented an exception-based flow break to access response data instead of sending responses.
  • API: Renamed and namespaced the API bootstrapper.
  • API: The method documentation URL is now included in the response API info.
  • API: The request and response mime types are now included in the response API info.
  • Connectors: Added a connector for framework APIs.
  • Themes: The clean frame template now uses the page title if set.
  • Validation: Added the ValidationResults utility class.
  • Validation: Added the ValidationResultInterface for objects that contain validation results.
  • Validation: Added the ValidationLoggableTrait for classes that combine logging and validation.
  • Tests: Added the OperationResultTestTrait for useful assertions.
  • Dependencies: Bumped up AppUtils to v3.1.10 for a bugfix.

Breaking changes

  • Renamed all API-related classes.
  • New API method structure and flow.
  • Renamed and namespaced the API bootstrapper.