chandanbhanopa/magento2-module-cb-helloworld

hello world 扩展

1.6.0.0 2022-07-25 10:14 UTC

This package is auto-updated.

Last update: 2024-09-25 15:46:57 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