cozmot/module-customvariableapi

Magento 2 Custom Variable Api Extension

1.0.0 2023-08-03 14:55 UTC

This package is auto-updated.

Last update: 2025-07-01 00:08:52 UTC


README

Cozmot Custom_Variable_API Extension for Magento 2 to return Custom Variables value in Rest API.

POST API

https://magento.test/rest/V2/cozmot/customvariable?storeVariable=banner_1

API Request on Postman

alt text

Add Custom Variable

alt text

1.1 Install

composer require cozmot/module-customvariableapi
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

1.2 Upgrade

composer update cozmot/module-customvariableapi
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

Run compile if your store in Production mode:

php bin/magento setup:di:compile

Version

v1.0.0 Initial Commit v1.0.1 Initial Code Commit