1000 search results

Hello, Since API Platorm 2.7 ResourceMetadataFactoryInterface is deprecated and has been replaced with ResourceMetadataCollectionFactoryInterface. I havent come arround to explore the new Interface, but it seems to be more than just a "switch interface and yeet" kind of update. Are there any plans to…
Automated clients interacting via API Platform for which a shared login is not desired. Don't really want to have a username/password stored on devices that would need to be updated. Clients would be manually ingested so tokens would be approved manually. I guess…
I haved changed to api_platform.graphql.serializer.context_builder but the query have error on phoneNumber when it set dynamically for admin. Do you have the same problem when using GraphQL and your solution? Thanks
The validator is not API platform specific, right? I have a strange problem: a validator that always shows a violation test-wise. This is triggered, as expected, on an API call. The same via EasyAdmin. But not when I create a new object and write…
Christian H.
Christian H.
Read Full Comment
I installed the api platform as follows on my Ubuntu laptop `$ wget https://get.symfony.com/cli/installer -O - | bash $ composer create-project symfony/skeleton apiproject $ cd apiproject $ git init $ composer require api $ symfony serve -d` When I…
sridharpandu
sridharpandu
Read Full Comment
…to setup (having come from PHP/Drupal background) 2. Creating entities is extremely easy (the decorator patternusage is awesome) but then the documentation (https://api-platform.com/docs/distribution/) is not in sync with the application. For example the documentation declares all variables as "public…
sridharpandu
sridharpandu
Read Full Comment
I'm waiting for api-platform and oauth2. :)
api-platform/core 2.5.6 and symfony/framework-bundle 5.0. It appears that the Symfony validators are firing based on the ORM definition of user before the data persister is used. The error I get when I follow this tutorial is `{ "@context": "/api
Hi Victor, ` /var/www/api-platform # yarn why babel-eslint yarn why v1.16.0 [1/4] Why do we have the module "babel-eslint"...? [2/4] Initialising dependency graph... [3/4] Finding dependency... [4/4] Calculating file sizes... => Found "babel-eslint@10.0…
37 lines | config/services.yaml
// ... lines 1 - 8
services:
// ... lines 10 - 33
App\ApiPlatform\AutoGroupResourceMetadataFactory:
decorates: 'api_platform.metadata.resource.metadata_factory'
arguments: ['@App\ApiPlatform\AutoGroupResourceMetadataFactory.inner']
See Code Block in Script
Loving the API Platform specific SymfonyCasts. Nice clear and easy to understand. Wish these were out a year ago when I started building my API Platform based API haha. Would have saved me a lot of time researching how to do X. Just wondering if…
I am new to API Platform and Symfony framework, so I have lots of questions. :) Until the end of the tutorial, there is no updates in repository files, such as CheeseListingRepository.php. I think it is auto-generated from `./bin/console make:entity --regenerate` command…
what about "API Platform: OAuth2 Server" tutorial ?
Can we use api platform to publish it for 3rd part developers with limits?
Stefan T.
Stefan T.
Read Full Comment
No-Docker API Platform tutorial. Finally! #dockersucks
Peter Sorensen
Peter Sorensen
Read Full Comment
Hello, I'm using Api pltform distribution to develop my newest app and it is a great experience! However, I noticed a memory issue whlie using Foundry factories and `doctrine:fixtures:load`. I'm trying to use these to setup testing data for my application…
Yeah but in api plateform we're not using any controller, are we ? Is there a way to filter an entity related collection by comparing an external parameters to it like, for exemple the authenticated user without using controller ?
Romain S.
Romain S.
Read Full Comment
In my ApiPlatform it shows 6 endpoint instead of 5 in the video. The new's one is PATCH. When I document this (if I understand correctly), PATCH is for modifying one property while PUT is for the entire Entity. But the exemple for Put…
55 lines | src/DataProvider/DailyStatsProvider.php
// ... lines 1 - 10
use App\ApiPlatform\DailyStatsDateFilter;
// ... lines 12 - 15
class DailyStatsProvider implements ContextAwareCollectionDataProviderInterface, ItemDataProviderInterface, RestrictedDataProviderInterface
{
// ... lines 18 - 26
public function getCollection(string $resourceClass, string $operationName = null, array $context = [])
{
// ... lines 29 - 30
$paginator = new DailyStatsPaginator(
$this->statsHelper,
$page,
$limit
);
$fromDate = $context[DailyStatsDateFilter::FROM_FILTER_CONTEXT] ?? null;
// ... lines 38 - 42
}
// ... lines 44 - 53
}
See Code Block in Script
60 lines | src/Entity/DailyStats.php
// ... lines 1 - 8
use App\ApiPlatform\DailyStatsDateFilter;
// ... lines 10 - 11
/**
// ... lines 13 - 22
* @ApiFilter(DailyStatsDateFilter::class)
*/
class DailyStats
{
// ... lines 27 - 58
}
See Code Block in Script