-
Book Overview & Buying
-
Table Of Contents
Node.js 6.x Blueprints.
By :
One of the best features of the LoopBack API Explorer is to generate a localhost API endpoint that allows us to view and test all endpoints generated by our API.
Also, it could be worth as documentation, containing all the necessary instructions as HTTP verbs GET, POST, UPDATE, DELETE, sending token access if necessary, the data type, and JSON format.
Open terminal/shell and type the following command:
npm start
Go to http://localhost:3000/explorer/#/. The result will be the following screenshot:

Screenshot of the API Explorer
It is possible to see the API base URL and the API version, our project name and the application endpoints.
When we click on the review model we can see all the endpoints with the HTTP verb, as we can see in the following image:

Screenshot of the review endpoint and the HTTP verbs
The endpoints created are the following:
http://localhost:3000/api/reviews
http://localhost:3000/api/motorcycles
And of course, it is possible to access them directly...