core
core copied to clipboard
The server component of API Platform: hypermedia and GraphQL APIs in minutes
**Description** For Resources collect denormalization type errors in serializer and return them in http response as constraint violations. use Symfony 5.4 serializer's feature https://symfony.com/blog/new-in-symfony-5-4-serializer-improvements#collect-denormalization-type-errors **Example** When trying to deserialize that...
Instead of giving the client the ability to construct arbitrary queries / filtering (something better served by existing standards / specifications, e.g. OData and GraphQL), we could allow predefined composite...
**API Platform version(s) affected**: 2.6.8 **Description** Assuming you have the following classes: ``` #[ApiResource] class Project { ... #[OneToMany(mappedBy: 'project', targetEntity: Transaction::class)] #[ApiSubresource] private Collection $collectionOfB; } #[ApiResource] class Transaction...
**Description** As of Symfony 6.1, Symfony\Component\Console\Attribute\AsCommand attribute is required. **Example** ``` bin/console api 2022-06-01T07:36:06-04:00 [info] User Deprecated: Since symfony/console 6.1: Relying on the static property "$defaultName" for setting a command...
| Q | A | ------------- | --- | Branch? | main | Tickets | https://github.com/api-platform/core/pull/4720#issuecomment-1157502265 | License | MIT | Doc PR | Pending See comment. This PR is...
**API Platform version(s) affected**: 2.6.5 **Description** I Created two entities. One of them have ManyToOne relation with another. I used Symfony uuid as a type for id, exposed both of...
**Description** I would like to use API Platform to get a slice of the results, not a page. **Example** /api/...?offset=422&items_per_page=81 A javascript library I'm using for infinite scrolling fetches more...
Hi, i'm using ApiPlatform + Symfony 4.3.3 to build a web application. I can't find a way to set the locale for my request. It always fallbacks back to the...
**API Platform version(s) affected**: 2.6.8 **Description** Not sure if this is a API Platform issue or a JWTRefreshTokenBundle one. When looking at the profiler there is a deprecation notice stating...
**API Platform version(s) affected**: 2.5 **Description** I'm writing some tests but in `\Symfony\Bundle\FrameworkBundle\Test\WebTestCase`, `static::createClient()->xmlHttpRequest()` convert everything to string while sending the request. I'm testing an api using `Api-platform`. The `api-platform\\core\\src\\Serializer\\AbstractItemNormalizer.php`...