腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
ApiPlatform
:
覆盖
RouteNameGenerator
、
、
看起来这个行为是由
ApiPlatform
\Core\Bridge\Symfony\Routing\
RouteNameGenerator
处理的 基本上,对于我的用例,我只需要将$pluralize参数设置为false
RouteNameGenerator
::inflector(string $name, bool $pluralize = true) 但它在调用时从未定义过,而且所有调用都是静态的。服务
覆盖
不起作用 //services.yaml
ApiPlatform
\Core
浏览 14
提问于2021-06-16
得票数 0
1
回答
ApiPlatform
/Symfony -为资源生成路径
、
、
我喜欢为
APiPlatform
资源生成uri,这对我来说似乎很基本,但我似乎找不到方法。这就是我想要完成的:class Customer // ... $path = $someApiPlatformService->getOperationPath(Customer::class,
ApiPlatform
$itemId = 'someid'; $path = $someApiPlatformService
浏览 2
提问于2020-07-20
得票数 1
1
回答
字段上的自定义排序顺序
、
、
、
我有一个值为1、2或3的字段。config\api_platform\resources.yaml attributes: myField: DESC
浏览 9
提问于2021-12-10
得票数 -4
1
回答
Symfony API平台操作
、
、
php use Doctrine\ORM\Mapping as ORM; use
浏览 19
提问于2022-10-07
得票数 1
回答已采纳
1
回答
基于API平台和AWS CloudFront的HTTP缓存失效
、
、
我已经编写了一个实现,但现在我不能让内置的缓存失效系统-should成为事件侦听器
ApiPlatform
\Core\Bridge\Doctrine\EventListener\PurgeHttpCacheListener-它只是继续注入
ApiPlatform
\Core\HttpCache\VarnishPurger。我所做的,基本上是在config/services.yml -having自动导航系统中启用的:
ApiPlatform
\Core\HttpCache\PurgerInterface: '@App\<
浏览 6
提问于2021-12-22
得票数 0
回答已采纳
1
回答
在API平台管理中另存为数组
、
我有一个类型为:array的字段。我正在尝试保存这个字段中的数据,但是管理组件一直给我一个The type of the "acceptedMeasurements" attribute must be "array", "string" given.错误(显然是来自Symfony)。/** */ * @return null|arrayp
浏览 0
提问于2018-10-10
得票数 3
1
回答
如何解决有关Symfony
ApiPlatform
SearchFilter导入的问题?
、
、
我用Symfony /
ApiPlatform
制作了一个API。我遵循了
ApiPlatform
关于查询过滤器的官方文档,但我不能使用ApiFilter "SearchFilter“。namespace App\Entity; use
ApiPlatform
\Metadata\ApiFilter;use
ApiPlatform</
浏览 4
提问于2022-10-12
得票数 0
回答已采纳
1
回答
API平台中的api版本化
、
、
、
我有一个使用API平台2.6的API,我的api上也有一些变化,所以我真的需要有api/v2,但是在api平台中似乎没有版本控制支持。非常简单的例子是在V1中不是强制性的字段,但它在V2中是必需的。
浏览 4
提问于2021-12-07
得票数 0
2
回答
在swagger UI api平台中不可见的实体
、
、
、
下面是我为新实体使用的代码: use
ApiPlatform
\Core\Annotation\ApiResource
浏览 6
提问于2022-04-14
得票数 1
回答已采纳
1
回答
Symfony序列化程序:规范化后移除字段
、
------------------------- api_platform.hydra.normalizer.collection_filter
浏览 6
提问于2022-02-16
得票数 2
回答已采纳
1
回答
根据特性在列上添加带有API平台的过滤器
、
、
、
php namespace App\Entity; use
ApiPlatform
\Core\Annotation\ApiFilter; use
ApiPlatform
\Core\Annotation\ApiSubresource; use
ApiPlatform
\
浏览 13
提问于2022-03-22
得票数 1
回答已采纳
2
回答
如何在我的自定义数据提供程序上注入api-plaform的分页过滤器
、
、
php use
ApiPlatform
\Core\Bridge\Doctrine\Orm\Util\QueryNameGenerator;use
ApiPlatform
\Core\Data
浏览 0
提问于2019-07-13
得票数 0
回答已采纳
1
回答
如何替换api平台中的对象类型?
、
、
我有一个项目与自定义原则类型的URL。它为每个实体中的每个URL字符串返回一个App\Util\Url对象。我还为它提供了一个规范化/去定向器,因此我习惯于在旧API中将它作为字符串进行传输。Url.jsonld{ @id [...] schema [...] path [...]我仍然在API平台响应中看到一个字符串。这意味着规范化器可以正常工作,但是OpenAPI仍然将我的字段
浏览 3
提问于2022-11-15
得票数 1
回答已采纳
2
回答
升级后,我的实体不再在API平台上公开。
、
php #[ApiResource( use
ApiPlatform
\Metadata\ApiResource; use
ApiPlatform
\Metadata\Ge
浏览 11
提问于2022-10-21
得票数 1
回答已采纳
1
回答
ApiPlatform
API文档:如何创建类似于NelmioApiDocs的区域?
、
我想在
ApiPlatform
生成的文档中创建“area”。在
ApiPlatform
中有可能吗?
浏览 10
提问于2022-09-24
得票数 0
1
回答
ApiPlatform
& Mercure (私人主题)
、
、
我的体系结构是基于Symfony 4.4 /
ApiPLatform
/ Mercure /角9的。我通过在我的resources.yaml
ApiPlatform
conf文件中添加mercure:true来简单地推动Mercure的工作。现在我需要进行隐私更新。因此,对于
ApiPlatform
,我必须添加参数私有:true。但是API的响应现在是: 自从Mercure 0.10之后,目标就不再存在了。
浏览 1
提问于2020-07-04
得票数 0
回答已采纳
1
回答
当抽象超类实体中存在多到多自引用关系时,Api平台中的“无法生成IRI”错误
、
、
、
、
php use Doctrine\ORM\Mapping as\\Core\\Bridge\\Symfony\\Routing", "class": "
ApiPlatform
\\\\Core\\Bridge\\Symfony\\Routing",
浏览 7
提问于2020-04-24
得票数 2
2
回答
如何将理论实体扩展为使用API平台
、
、
、
phpuse
ApiPlatform
\Core\Annotation\ApiResource;use Ramsey\Uuid\UuidInterface
浏览 6
提问于2019-12-04
得票数 1
回答已采纳
2
回答
如何在
apiplatform
/graphql上创建/突变有子关系的实体
、
、
、
、
stock: String以下是我的实体:use
ApiPlatform
\Core\Annotation\ApiProperty;use
ApiPlatform
Core\Annotation\ApiSubresource; use Doctri
浏览 0
提问于2019-08-16
得票数 2
1
回答
引用相关实体的嵌套属性时,默认API筛选器失败
、
、
php use Doctrine\ORM\Mapping asORM; * PostAuthor * @ORM\Table(php use Doctrine\Common\Collections\ArrayCollection;
浏览 21
提问于2019-04-05
得票数 0
点击加载更多
相关
资讯
全屋覆盖WIFI信号方案 复式 大别墅全覆盖
评价真菌引物覆盖度(5)R计算引物覆盖度
企业级无线覆盖与家庭无线覆盖的区别和发展
无线AP覆盖方案
织密5G精品网 “广覆盖”变“深覆盖”
热门
标签
更多标签
云服务器
ICP备案
云直播
腾讯会议
实时音视频
活动推荐
运营活动
广告
关闭
领券