narendrav24/dynamicapifield 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

narendrav24/dynamicapifield

Composer 安装命令:

composer require narendrav24/dynamicapifield

包简介

A demo module that demos how to add dynamic fields in product REST API response using extension attributes.

README 文档

README

This extension add two static constant attributes to product GET APis (/V1/products/:sku, /V1/products).

The example of adding extension attributes with plugin could be find in this extension

Motivation

To demonstrate how to add extension attributes to product list and getlist REST API

API

In order to get product or list of products by Magento API you need to do API request to appropriate service. In Response you will see product object which returns extension attributes

Product Repository Plugin

You can find plugin here: {extension_folder}/Plugin/ProductAttributesLoad afterGet, afterGetList - this methods are listen ProductRepositoryInterface in order to add custom own attributes

Installation

The extension can be installed using composer - composer require narendrav24/dynamicapifield

Enable the module by adding it the list of enabled modules in the config or, if that file does not exist, installing Magento. After including this component and enabling it, you can verify it is installed by checking bin/magento module:status Narendra_DynamicApiField

This should say that the module is enabled.

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2022-03-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固