Skip to content

0.7.0

Compare
Choose a tag to compare
@kocsismate kocsismate released this 04 Oct 20:42
· 585 commits to master since this release

ADDED:

  • A separate responder class
  • ExceptionFactoryInterface which helps you to fully customize error messages
  • JsonApi::hydrate() helper method to make hydration easier
  • Integrated content negotiation and request/response validation from Woohoo Labs. Yin-Middlewares
  • Even more extensive documentation

CHANGED:

  • JSON API exceptions extend JsonApiException thus they can be catched easier
  • Documents are moved to JsonApi\Document namespace from JsonApi\Transfomer
  • Refactored transformation to fix inclusion of multiple identical resource objects
  • When the data member is missing from the top source, the appropriate exception is thrown

REMOVED:

  • Different types of responses (e.g.: FetchResponse)

FIXED:

  • Compound documents now can't include more than one resource object for each type and id pair
  • Request body was always null
  • Single resource documents didn't contain the data top-level member unless resource ID was 1