1016 search results for API Platform

Quick Create a DragonTreasure DTO

Time to convert our DragonTreasure ApiResource into a proper DTO class! We'll start by deleting a ton of stuff: everything related to API Platform in DragonTreasure... so we have a clean slate to start from. We'll add ...

9:51
Validating how Values Change

... ()... which then calls setOwner($this). So, by the time validation runs, it's going to look like we are the owner of the treasure... even though we originally weren't! What can we do? Well, API Platform does have a ...

8:30
Creating your First ApiResource

... Let's call our entity DragonTreasure. Then it asks us a question that you maybe haven't seen before - Mark this class as an API platform resource? It asks because API Platform is installed. Say no because we're going to do ...

5:44
API Docs on Production

Welcome back you wonderful JSON-returning people, to API Platform episode 2. In part 1, we got busy! We created a pretty killer API to store dragon treasures, though... we completely forgot to add security! Any small ...

8:22
Hi, Thanks for your reply! It turns out it was a problem with the version of API Platform. I updated Symfony from 6.3 to 6.4, but didn't update api-platform. I updated to the latest API-platform version, and now it works again! ...
Hi Ryan, I just jumped into API Platform and it's pretty confusing to me. I am planning to go through the API Platform 2 first since it has the security related content. Is it okay or shall I just wait for API Platform 3 and start from there? Thanks! ...
hallo i would like to know wich is the best way to clean input field using api platform, according to this https://github.com/api-platform/api-platform/issues/1089 has been told to take care of cleaning the values ...
Emanuele-P
Emanuele-P
Read Full Comment
The output doesn't show any route. `➜ api-platform git:(master) ✗ bin/console debug:router ------ -------- -------- ------ ------ Name Method Scheme Host Path ------ -------- -------- ------ ------ ➜ api ...
Dennis B.
Dennis B.
Read Full Comment
hello, tried with old and the latest api platform versions, but somehow normalization context +groups does not help show fields for this DailyStats, really strange, for User and CheeseListings - works as expected, I use SF5.2 clearing cache didn't help https://github.com/api-platform/api-platform/issues/1576 ...
Hey @Daniel-G Thanks for posting this - VERY awesome of you :). We're going to be hard at work in December updating the tutorials for API Platform 3. However, I talked with the API Platform lead dev last week and he ...
weaverryan
weaverryan
Read Full Comment
The Serializer

The key behind how API platform turns our objects into JSON... and also how it transforms JSON back into objects is Symfony's Serializer. symfony/serializer is a standalone component that you can use outside of API ...

9:08
Perhaps this chapter could include a comment about if this is appropriate to use with API Platform, or if for API Platform one should use their react Admin package instead? https://api-platform.com/docs/admin/ ...
Jason-Aller
Jason-Aller
Read Full Comment
Validation Groups Patch Formats

... this. In the greater interwebs, there are competing formats for how the data should look when using a PATCH request and each format means something different. Currently, API Platform supports only one of these formats ...

8:01
... update api-platform/api-pack Loading composer repositories with package information Updating dependencies Lock file operations: 6 installs, 0 updates, 0 removals - Locking api-platform/api-pack (v1.3.0) - Locking api ...
Rodrypaladin
Rodrypaladin
Read Full Comment
... plan to add JWT authentication in API Platform in this tutorial? I tried the API Platform website, but it only shows how to install and configure. There are no further information to get started. Also Symfony RESTful API: Authentication with JWT (Course 4) doesn't seem much relevant to the API Platform. Thanks for your work!
... Oh it's looks like api platform known error https://github.com/api-platform/core/issues/4293 Adding PatchAwareItemNormalizer seems to fix the problem. Thanks for answer :)
... Yup, there's an open issue about it - no fix proposed at the moment :/ https://github.com/api-platform/api-platform/issues/1892 ...
weaverryan
weaverryan
Read Full Comment
Thanks for the reply, I opnened an issue on friday: https://github.com/api-platform/api-platform/issues/1899 btw: great course and teacher! ...
TristanoMilano
TristanoMilano
Read Full Comment
Hey Geoff Maddock! I'm not sure of a workaround - here is the issue tracking this on API Platform: https://github.com/api-platform/core/issues/3590 Cheers! ...
weaverryan
weaverryan
Read Full Comment
State Providers Processors a Custom Field

API Platform 3 rolled out snazzy new concepts called State Providers and State Processors. We chatted about them in the last tutorial and we're going to dive even deeper in this tutorial. Nestled within the "Upgrade ...

4:49