Skip to content

Releases: pointybeard/api_framework

0.2.1

21 Jun 00:39
Compare
Choose a tag to compare

Added

  • Added JSON_UNESCAPED_SLASHES to avoid unnecessary escaping of slashes in output. (#8)
  • Added new abstract extension AbstractApiException which is used by ControllerNotFoundException and MethodNotAllowedException. Allows setting of HTTP response code to avoid every exception thrown appearing as a '500 Internal Server Error'

Changed

  • Updated core controller event based on changes to ControllerNotFoundException and MethodNotAllowedException
  • Updated ControllerNotFoundException and MethodNotAllowedException to extend the new AbstractApiException class
  • Updated ExceptionHandler to check for overloaded http response code. Calls the method getHttpStatusCode() if it is available

Fixes

  • Removed the use clause for Symphony as it is redundant and causes a PHP warning
  • Using API Framework exception and error handlers instead of Symphony built in. (#9)

0.2.0

03 May 05:17
Compare
Choose a tag to compare

Added

  • Transformer and Transformation classes.
  • Added APIFrameworkJSONRendererAppendTransformations delegate
  • Added phpunit to composer require-dev
  • Added unit tests for Transformation code
  • Controller names are based on full page path (#5)
  • Using PSR-4 folder structure for controllers. Controllers must have a namespace. (#7)

Fixed

  • Checking that controller actually exists before trying to include it (#6)

Removed

  • Symphony PDO is not longer a Composer requirement as it is not used

0.1.1

25 Apr 04:05
Compare
Choose a tag to compare

Added

  • Added CONTRIBUTING.md and CHANGELOG.md

Changed

  • Improvements to the example controller code in README.md
  • Code cleanup
  • Improved README.md

Fixed

  • Extension driver had include class name which meant could not install

Initial Release

25 Apr 03:29
Compare
Choose a tag to compare

Initial release of API Framework for Symphony CMS