cb/helloworld

Hello world 扩展

1.6.0.0 2022-07-25 10:14 UTC

This package is auto-updated.

Last update: 2024-09-19 14:16:42 UTC


README

适用于 Magento 2.3.x 和 2.4.x

只需安装它,了解在 Magento 中仓库的工作原理。

什么是 Magento2 的仓库设计模式

在仓库设计模式中,与数据库对象连接的接口用于执行 CRUD 操作。它隐藏了业务逻辑的实现。

我们为什么使用仓库?

它用于提高 API 管理,以便第三方开发者可以轻松使用。

API 列表

/V1/computers/save

{ "computers": { "company": "string", "hard_disk": "string" } }

/V1/computers/{id}/

/V1/computers/delete/{id}

/V1/computers/list

功能

  • 创建具有计算机和硬盘字段样例表的表。
  • 在客户部分创建带有表单和验证的 CRUD 操作。
  • 为第三方开发者创建所有 API。

如何安装 Magento Helloworld 模块

使用 Composer(推荐)
composer require chandanbhanopa/magento2-module-cb-helloworld

贡献

chandanbhanopa@gmail.com