1026 search results for API Platform

Pagination Foundry Fixtures

... a collection need pagination... just like a website. And with API Platform, it just works. To play with this, let's go to /api/treasures.jsonld. This is page 1... and then we can add ?page=2 to see page 2. That's the ...

5:44
Wow, this is crazy! So, it's NEVER and correct IRI string? And you see the `path/실례.html` sometimes? And other times `../словник`? So, looking at API Platform, the string `실례` DOES show up in 1 place (though ...
weaverryan
weaverryan
Read Full Comment
If I throw a custom Api Platform exception, It should return 400. But it returns a symfony error 500. ---- github/api-platform/core/issues/3239 After some digging, I found that api-platform only handles the ...
Hello, I have not yet completed the course, so maybe i missed it In the old course for API Platform 2, the creation of a Resource Metadata Factory was discussed. Since it is a very convenient way to create Metadata ...
Hey Fränz F.! Are you using the new Symfony 5.1/5.2 security - the `enable_authenticator_manager` option inside of security.yaml? If so, there is a bug in it with API Platform. Or, to be more fair to them, API Platform ...
weaverryan
weaverryan
Read Full Comment
Hello Everybody, I am new with api platform and i find it's a great framework to make Rest APIs. I have some questions : 1 - Is api Platform suitable for making microservices ? My matter is i have an openapi specs and i ...
soufianejhioui
soufianejhioui
Read Full Comment
Hey Simon, We do recommend to start with API Platform course, it's easier to learn and understand, and has Symfony 5 support. You can find a few courses about it here: https://symfonycasts.com ...
I purchased a sub to symfonycasts to learn about api-platform... because we are considering using api-platform for an upcoming project we have. Unforunately we won't be able to use IRIs for relations on this project ...
just one the first page of api platform ;) https://api-platform.com/ "the easiest way to create your web API" ...
... ", "class": "Doctrine\\ORM\\ORMInvalidArgumentException", "type": "::", "function": "detachedEntityCannot", "file": "/Users/me/Documents/Projects/api-platform/vendor/doctrine/orm/lib/Doctrine/ORM ...
Testing Token Authentication

What about a test like this... but where we log in with an API key? Let's do that! Create a new method: public function testPostToCreateTreasureWithApiKey(): This will start pretty much the same as before. I'll copy ...

3:24
... you make a `GET /api/categories/1/products`, then, behind the scenes, API Platform simply calls `$category->getProducts()` to fetch that data. Your idea about a normalize actually isn't one I had thought of - nice job ...
weaverryan
weaverryan
Read Full Comment
Filtering the Products

... our API docs and scroll down to the GET /api/products endpoint. I've already done a bit of work behind the scenes in API platform to allow us to fetch all the products for a specific category. Here's how it works: we can ...

4:51
Subresources

... collection, we want the user to be able to go to /api/users/4/treasures.jsonld. That, of course, doesn't work. But it can be done. This is called a subresource, and subresources are much nicer in API platform 3. Okay, let's ...

9:54
DTO Quirks Embedded Objects

... cheeseListings field. That's... not right. An embedded object... with only the @id field? We know that if none of the fields on a related object will be serialized, then API Platform should return an array of IRI strings ...

6:37
Hi, I have the api-platform/api-pack v. 1.2.2. I think it is ok. ...
Gaetano S.
Gaetano S.
Read Full Comment
I watched the first and half of the second courses. I am very excited about API Platform features. But I am concerned about the ability to create custom endpoints. For example, if I need a nested menu tree - is it ...
Vladislav T.
Vladislav T.
Read Full Comment
Hi @weaverryan, Thank you for your answer ! You're totally right `$data` and `$this->innerProcessor->process()` return the same entity. I use Symfony 6.4 with api-platform/core v3.2.7. If I debug my ...
Hey @ties8! Yup, I know what you're talking about :). The short answer is that no, unfortunately, I decided not to cover this for the API Platform 3 tutorial. I just wasn't sure how many people were actually using it ...
weaverryan
weaverryan
Read Full Comment
... with mixing Elastic and pgsql, but I would have thought that this would - in theory - at least make Api Platform *attempt* to use the "comments" property. Do you get an error? Or does the sub resource simply not show up ...
weaverryan
weaverryan
Read Full Comment