What's Changed
-
fix(serializer): fix TagCollector for JSONAPI and HAL format by @usu in #6076
-
fix(graphql): use normalization context to get item from IRI by @bkosun in #5915
-
fix(doctrine): constants case sensitive values by @soyuka in #6066
-
feat(serializer): collect cache tags using a TagCollector by @usu in #5758
-
feat(parametervalidator): create api-platform/parameter-validator component by @aegypius in #6080
-
feat(subresource): Link Security by @KDederichs in #5290
-
feat(symfony): request and view kernel listeners by @soyuka in #6102
Components:
api-platform/parametervalidator
api-platform/doctrine-common
api-platform/doctrine-orm
api-platform/doctrine-odm
A new interface ApiPlatform\Serializer\TagCollectorInterface
allows to collect cache tags (IRIs) during serialization instead of using API Platform defaults.
An experimental feature (#5290) gives the ability to use security
on sub resource links.
If you use controllers you should use:
api_platform:
use_symfony_listeners: true
The default is false
you can get rid of the event_listeners_backward_compatibility_layer
flag. You can now force an operation state, for example:
<?php
#[Delete(validate: true)]
#[Post(read: true)]
class Book {}
These namespaces are deprecated:
ApiPlatform\Api
ApiPlatform\Exception
ApiPlatform\Problem
ApiPlatform\Action
ApiPlatform\Util
Most of the classes have moved to ApiPlatform\Metadata
.
New Contributors
- @aegypius made their first contribution in #6080
- @GromNaN made their first contribution in #6090
- @dependabot made their first contribution in #6075
Full Changelog: v3.2.11...v3.3.0-alpha.1