Shopware 6 Admin API 的文档.什么是可能的命令? [英] Documentation for Shopware 6 Admin API. What are possible commands?

查看:47
本文介绍了Shopware 6 Admin API 的文档.什么是可能的命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的任务是将我们旧商店的系统集成到 Shopware 6.所以我必须处理 Admin API.文档说:

I got the task to integrate the systems of our old shop to Shopware 6. So I have to deal with the Admin API. The documentation says:

Admin API 的设计方式是:系统可以用同样的方式读取.一旦实体在系统,可以通过API读写

The Admin API is designed in such a way that all entities of the system can be read in the same way. Once an entity is registered in the system, it can be written and read via API

https://developer.shopware.com/docs/guides/integrations-api/admin-api/reading-entities

这些实体是如何运作的?是否有所有默认实体的列表/文档?我必须自己注册实体吗?

How does those entities work? Is there a list/documentation of all default entities? Do I have to register the entities myself?

推荐答案

您无需注册默认";Shopware 核心提供的实体.但是,如果您定义自己的自定义实体,则必须将其注册为服务.您可以使用生成 swagger UI 文档的/api/v{version}/_info/swagger.html 端点获取在核心中注册的实体列表.

You don't need to register "default" entities that are provided by Shopware core. But if you define your own custom entity you have to register it as a service. You can get a list of entities that are registered in the core using /api/v{version}/_info/swagger.html endpoint which generates swagger UI docs.

这篇关于Shopware 6 Admin API 的文档.什么是可能的命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆