|
hey guys,
i would use the new REST-API, but it doesn`t work…
\\\"http://example.de/api/rest/products\\\" returns \\\"Invalid webservice adapter specified.\\\”.
Guests have access to all (for testing)
Magento Version 1.7.0.0
PHP 5.3.10
What could i do?
## update ##
api.php
// query parameter "type" is set by .htaccess rewrite rule $apiAlias = Mage::app()->getRequest()->getParam('type');
but $apiAlias is empty
.htaccess
############################################ ## uncomment next line to enable light API calls processing
# RewriteRule ^api/([a-z][0-9a-z_]+)/?$ api.php?type=$1 [QSA,L]
############################################ ## rewrite API2 calls to api.php (by now it is REST only)
RewriteRule ^api/rest api.php?type=rest [QSA,L]
edited api.php
// query parameter "type" is set by .htaccess rewrite rule $apiAlias = Mage::app()->getRequest()->getParam('type'); $apiAlias = 'rest'
now it`s working fine
|