From the course: Building APIs with LoopBack
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Testing our model with Explorer - Node.js Tutorial
From the course: Building APIs with LoopBack
Testing our model with Explorer
- [Narrator] So, you've seen how to set up a LoopBack application, as well as how to define a model. I've said that LoopBack is going to set up APIs based on that model and now that the model is created, that's actually done for us. So, how do we test this? The LoopBack Explorer is a built in tool that automatically documents your APIs, as well as provides a way to test them. You don't have to use it. You can use other tools like Postman or cURL, or even write your own. But when first setting up your LoopBack project, the explorer can be incredibly useful for seeing how your APIs are working. Note, though, if you don't want this tool on your note server, you can turn it off. All right, so, how do we get there? I am back in terminal, I'm going to start up my LoopBack app by running nodot. And as you could see, it's telling me that I can browse my REST API at localhost:3000/explorer. Let's look at that in our browser. All right, so we've got a few things in play here. First, you can see…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.