Skip to content

v0.5

Compare
Choose a tag to compare
@f3l1x f3l1x released this 26 Aug 20:16
· 106 commits to master since this release

Diff: v0.4...v0.5

New:

  • rewrited documentation
  • Apitte is now wrapped into own Application class which must be used for proper functioning (see documentation)
  • error handler
    • transforms all thrown errors into response
      • could be disabled by option catchException: false in debug mode
      • apitte/negotiation is used for error transformation instead, if installed
    • if an PSR-3 compatible logger (like Monolog) is register in DIC then all errors except our special ApiException and it's descendants (ServerErrorException, ClientErrorException, ...) are logged with error severity
      • also previous errors from ApiException ($exception->withPrevious($anotherException)) are logged
  • ClientErrorException and ServerErrorException have default error message contributte/apitte@866418d
  • new Request, Response and OpenApi annotations (used by apitte/openapi) contributte/apitte@31d7008
  • ApiResponse contain constants with all HTTP response codes contributte/apitte@342311b
  • request parameters with type int and float accept numbers prefixed with + contributte/apitte@969f9d5
  • apitte/playground merged with planette/playground

Changes:

Removals:

Fixes: