If i try to access products using Rest API, like
URL : http://127.0.0.1/anusthana/api/rest/products?limit=2
error :
How can i solve the error and how can i access products using REST API?
Hello @Jeeva Rathinam
It seems like server/configuration issue, please check httpd.conf file with following code the error fixed
<Directory "your directory here"> Order allow,deny Allow from all # New directive needed in Apache 2.4.3: Require all granted</Directory>
To find location of httpd.conf,
https://www.phusionpassenger.com/library/install/apache/working_with_the_apache_config_file.html
Restart server again after these changes.
Apart from that you can check customer role and permission with the help of below shared link:
https://inchoo.net/magento/configure-magento-rest-and-oauth-settings/
@Manish Mittal I can't find the file httpd.conf , can you pls help me how can i find in localhost and how can i get products using http://localhost/anusthana/api/rest/products?limit=2
Note : Correct me is right what i did,
location : c:/wamp/bin/apache/apache2.4.27/conf/httpd.conf -> add ->
<Directory /var/www/html/magento>
AllowOverride All
# New directive needed in Apache 2.4.3:
Require all granted
</Directory>
is right?
/opt/lampp/etc/httpd.conf
/opt/lampp/apache2/conf
You can check both files which are working for you.
@Manish Mittal I am using wamp, so where is the file located?
any file under ?
wamp/www/
After your changes, you restart your server and check if it works for you.
@Manish Mittal what i need to do?
@Manish Mittal Any suggestion regard my issues?