core

The server component of API Platform: hypermedia and GraphQL APIs in minutes

MIT License

Downloads
33.5M
Stars
2.4K
Committers
448
core - v3.3.6 Latest Release

Published by soyuka 4 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/api-platform/core/compare/v3.3.5...v3.3.6

core - v3.2.24

Published by soyuka 4 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/api-platform/core/compare/v3.2.23...v3.2.24

core - v3.3.5

Published by soyuka 5 months ago

What's Changed

Full Changelog: https://github.com/api-platform/core/compare/v3.3.4...v3.3.5

core - v3.3.4

Published by soyuka 5 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/api-platform/core/compare/v3.3.3...v3.3.4

core - v3.2.23

Published by soyuka 5 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/api-platform/core/compare/v3.2.22...v3.2.23

core - v3.3.3

Published by soyuka 6 months ago

What's Changed

Full Changelog: https://github.com/api-platform/core/compare/v3.3.2...v3.3.3

core - v3.3.2

Published by soyuka 6 months ago

What's Changed

Notes

You can remove the event_listeners_backward_compatibility_layer flag and set use_symfony_listeners instead. The use_symfony_listeners should be true if you use controllers or if you rely on Symfony event listeners.

Note that now flags like read can be forced to true if you want to call a Provider even on POST operations. These are the rules we set up on runtime if no value has been set:

if (null === $operation->canValidate()) {
    $operation = $operation->withValidate(!$request->isMethodSafe() && !$request->isMethod('DELETE'));
}

if (null === $operation->canRead()) {
    $operation = $operation->withRead($operation->getUriVariables() || $request->isMethodSafe());
}

if (null === $operation->canDeserialize()) {
    $operation = $operation->withDeserialize(\in_array($operation->getMethod(), ['POST', 'PUT', 'PATCH'], true));
}

Previously listeners did the checks before reading our flags and you could not force the values.

Full Changelog: https://github.com/api-platform/core/compare/v3.3.0...v3.3.1

Full Changelog: https://github.com/api-platform/core/compare/v3.3.0...v3.3.2

core - v3.3.1

Published by soyuka 6 months ago

What's Changed

Notes

You can remove the event_listeners_backward_compatibility_layer flag and set use_symfony_listeners instead. The use_symfony_listeners should be true if you use controllers or if you rely on Symfony event listeners.

Note that now flags like read can be forced to true if you want to call a Provider even on POST operations. These are the rules we set up on runtime if no value has been set:

if (null === $operation->canValidate()) {
    $operation = $operation->withValidate(!$request->isMethodSafe() && !$request->isMethod('DELETE'));
}

if (null === $operation->canRead()) {
    $operation = $operation->withRead($operation->getUriVariables() || $request->isMethodSafe());
}

if (null === $operation->canDeserialize()) {
    $operation = $operation->withDeserialize(\in_array($operation->getMethod(), ['POST', 'PUT', 'PATCH'], true));
}

Previously listeners did the checks before reading our flags and you could not force the values.

Full Changelog: https://github.com/api-platform/core/compare/v3.3.0...v3.3.1

core - v3.3.0

Published by soyuka 6 months ago

What's Changed

Full Changelog: https://github.com/api-platform/core/compare/v3.3.0-beta.2...v3.3.0

core - v3.2.22

Published by soyuka 6 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/api-platform/core/compare/v3.2.21...v3.2.22

core - v3.1.29

Published by soyuka 6 months ago

What's Changed

Full Changelog: https://github.com/api-platform/core/compare/v3.1.28...v3.1.29

core - v3.3.0-beta.2

Published by soyuka 6 months ago

What's Changed

Full Changelog: https://github.com/api-platform/core/compare/v3.3.0-beta.1...v3.3.0-beta.2

core - v3.2.21

Published by soyuka 6 months ago

What's Changed

Full Changelog: https://github.com/api-platform/core/compare/v3.2.20...v3.2.21

core - v3.1.28

Published by soyuka 6 months ago

What's Changed

Full Changelog: https://github.com/api-platform/core/compare/v3.1.27...v3.1.28

core - v3.2.20

Published by soyuka 7 months ago

What's Changed

Full Changelog: https://github.com/api-platform/core/compare/v3.2.19...v3.2.20

core - v3.3.0-beta.1

Published by soyuka 7 months ago

Bug fixes

  • 23a9f2a7f fix(openapi): webhook has pathItem
  • 54638d3ca fix: fix PHPUnit 11 compatibility (#6202)
  • bc96751e0 fix(graphql): nested collection for mongo (#6174)
  • ca6be326d fix(doctrine): fix case on Mercure ExpressionLanguage (#6207)
  • dad8b7df3 fix(validation): move validation exception resource (#6204)

Features

  • 0b724d93b feat(openapi): document parameter
  • 125f2cef4 feat: add webhook - openapi (#5873)
  • 31d24aca4 feat(hydra): read hydra:property from ApiProperty::jsonLdContext (#6240)
  • 3ad3836d5 feat(metadata): attribute Parameter (#6246)
  • 52322048c feat(state): provide parameter values
  • 5523bf5df feat(openapi): disable response override (#6221)
  • 683c34c6f feat(hydra): parameter documentation
  • 732d4aa8c feat(symfony): parameter DI for metadata state serializer
  • 842030d55 feat(doctrine): parameter filter extension (#6248)
  • b79c7ae0e feat(metadata): allow \Stringable for security parameters (#6095)
  • e427bba70 feat(jsonschema): JSON:API schema factory (#6250)

The v3.3.0-beta.1 introduces a new QueryParameter attribute to improve the filtering system.

core - v3.2.19

Published by soyuka 7 months ago

What's Changed

Full Changelog: https://github.com/api-platform/core/compare/v3.2.18...v3.2.19

core - v3.1.27

Published by soyuka 7 months ago

What's Changed

Full Changelog: https://github.com/api-platform/core/compare/v3.2.18...v3.1.27

core - v3.2.18

Published by soyuka 7 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/api-platform/core/compare/v3.2.17...v3.2.18

core - v3.2.17

Published by soyuka 7 months ago

What's Changed

Full Changelog: https://github.com/api-platform/core/compare/v3.2.16...v3.2.17