Skip to content
Advertisement

Tag: api-platform.com

Entity not visible in swagger UI api platform

I use Api Platform & Symfony (5.4) + php 7.2.5 I created an Entity by myself, I just added one file in /src/Entity and it’s not working. I refresh, I cleared cache, I adde @ApiResource… But the Entity is not visible in the doc page in API Platform. Have you an idea where the error is ? Thanks ! Here

API Plateform custom get operation

I am trying to build an ecommerce site using API plateform. Since I am using JWT authentication with LexikJWTAuthenticationBundle I am having a hard time to get the user with the token. I would like to access the cart of the user. I managed to add to the cart through a custom post operation. I am trying to use the

api platform – Unable to generate an IRI for the item

I’m starting with API Platform and I’m using the example entity “Foo”: I succesfully see the new Entity in dashboard (See image): API Platform Dhasboard And I had the following error when I try to get all Foo collection: I tried different formats and check the the routes too: It’s possible what I need some special library in my server?

Advertisement