I want to use Magento Rest-Api to add custom data into Magento table. I have added one table into Magento db and created module with Rest API for that using following link
Now I want to add data into Magento table using Rest API...
what I need to changed in api.xml
/api2.xml
or in V1.php
file.
Kindly help me I have tried many codes using reference of product api2.xml file. but no luck.
when I run following URL
http://magento-host/api/rest/magepim/products/count
it will executed V1.php
file's _retrieve()
function but how to call _create()
function using PHP RestApi oauth
magento\app\code\core\Mage\Api2\Model\Resource.php is only allowed collection action type for create method.. so changed in api2.xml file and setup required fields in attribute tag
magento\app\code\community\MagePim\Extapi\etc\api2.xml
magento\app\code\community\MagePim\Extapi\Model\Api2\Rest\Admin\V1.php