Magento 2 Accessing the API

I have installed a copy of Magento 2 locally on my computer and what I want to do is to set it up so that I can access the whole thing as a Rest Api.

I have tried some url's like: http://127.0.0.1/magento/rest/v1/products but I don't get any json.

How can I set this up so I can access the api from my browser url?
LVL 1
error2013Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

leakim971PluritechnicianCommented:
from documentation :
part 1 : create a user able to use web services
https://devdocs.magento.com/guides/v2.0/get-started/bk-get-started-api.html

How do I get started?
You must register a web service on Magento Admin. Use the following general steps to set up Magento to enable web services.

If you are using token-based authentication, create a web services user on Magento Admin by selecting System > All Users > Add New User. (If you are using session-based or OAuth authentication, you do not need to create the new user in the Admin.)
Create a new integration on Magento Admin. To create an integration, click System > Integration > Add New Integration. Be sure to restrict which resources the integration can access.
Use a REST or SOAP client to configure authentication.

part 2 : doing the request
https://devdocs.magento.com/guides/v2.0/get-started/rest_front.html

The caller issues an HTTP request, which contains the following elements:

An HTTP header that provides authentication and other instructions
A verb, which can be one of GET, POST, PUT, or DELETE.
An endpoint, which is a Uniform Resource Indicator (URI) that identifies the server, the web service, and the resource being acted on.
The call payload, which is set of input parameters and attributes that you supply with the request.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Magento

From novice to tech pro — start learning today.