... DTO before api-platform tries to serialize.
Below is a quick and dirty fix that resolved the issue for me on my end.
Hope this helps someone!
```
Hey @Peter-P!
I'm hoping to do an episode 4 at some point, which will include filters. No timeline however! Until then, we do talk about custom filters in the API Platform v2 version of this tutorial - https ...
... relations that you need to embed? Maybe you don't embed anymore and rely on Vulcain in this case?
Cheers
Edit : Oh sorry I was in too much of a hurry, all my questions seems to have an answer in the next part : https://symfonycasts.com/screencast/api-platform-security
Thank you very much
Hi everyone,
I am working on an application with API Platform 3. I have an Entity called "Users" and another Entity called "Prospects". I have created a route: /api/users/{partner_id}/prospects/{id}, where ...
... details at https://github.com/api-platform/core/issues/4672 -- I'd LOVE to be able to solve this problem, as I have a hack that does two larger-than-necessary API calls and then slices the result as needed. Ugh.
Hi,
I faced the same issues mentioned below and in the previous video whereby I had to specify api-platform/api-pack "1.2.0" and doctrine/doctrine-migrations-bundle "^2.0" and now I'm getting a connection refused error ...
Hello Ryan!
Yes it already seems a little clearer to me!
So I moved forward a bit, and here is the end result :
https://github.com/bastien70/api_platform_tuto
This is the entire training on API Platform, for Symfony ...
... //github.com/api-platform/core/blob/6336f6446722cd6728683c36fb70e0074553296d/src/Serializer/SerializerContextBuilder.php#L108-L115
It appears that if there is a PATCH operation, `skip_null_values` is set to `true`.
Since the ...
... i process it.( i save it in s3, then save only the s3 path in my db ). Can i force api platform to use the normal fields on read/write from the entity and use only the file property from the FileInput ( and FileInputDataTransformer), since the only time i need the file field is when i save it to s3 and save its properties to db
Thank you!
I had a hard time to figure what was wrong with what I was doing. Actually, I didn't need the requestStack, but I needed to add "security_post_denormalize" in my Api Platform Configuration. Not sure I've ...
... data provider for this "Product" entity is executed. Suppose you want that to return a new "customResource" property that contains your CustomResource. If you add that property to Product, all API Platform will do is ...
... again get the same error (here is a screenshot)
`composer show api-platform/core` says that I have version 2.4.6, so the 415 status code is expected. Since 2.4.6 you get a 415 instead of 406 when a faulty content type is ...
... resolved to PostController::unpublish where I will do all needed operations and output the same data as standard PATCH method.
I saw on the page https://api-platform.com/docs/core/operations/ how to make custom operation for controller, but how to force api-platform to do docs, output etc. same as for PATCH?
...
```
```
This is my twig template:
```
{% extends 'base.html.twig' %}
{% block body %}
{% endblock %}
```
My ReactAdmin:
```
import React from 'react';
import { HydraAdmin } from "@api-platform ...
... SymfonyCasts with about 3 microservices that expose an API and are consumed by SymfonyCasts.com and the other microservices. Buuut, all of this predates ApiPlatform (or at least, predates Api Platform v2), and so they ...
...
But they are still really useful - especially the IRI links that api platform uses. Basically, I see links as a useful way to help pass more info to my javascript so that I don’t need to hardcode url patterns there. For ...
... .. but I might create services (that look similar to the entity manager, for example) to do the "querying" and "saving" across the API.
B) API Platform generates an OpenAPI spec for your API. And... one of the "perks" of ...
Custom Resource GET Item
... you look at the top of the DailyStats class, we kind of added the get
item operation... but we made it return a 404 response:
We did that as a workaround so that API Platform could generate an IRI for
DailyStats. Now I ...
JSON API Endpoint
... array, but it means that you could start passing objects to $this->json().
If you want to learn more - or want to build a super-rich API - check out our
tutorial about
API Platform: an amazing Symfony
bundle for building ...
Validation Groups
... plainPassword field isn't persisted to the database,
at the beginning of each request, after API Platform queries the database for the
User, plainPassword will always be null. If an API client only sends the
username field ...
1026
API Platform
Filter Results