API Update (Breaking-L)
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
ValidationResultsutility class. - Validation: Added the
ValidationResultInterfacefor objects that contain validation results. - Validation: Added the
ValidationLoggableTraitfor classes that combine logging and validation. - Tests: Added the
OperationResultTestTraitfor 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.
- Pull request by @Mistralys in #81
- Full Changelog: 5.11.3...5.12.0