Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
The video for this lesson is currently being updated, please read the transcript instead.
Full-Stack Vue + Node > Lesson 32

Testing endpoints with dynamic segments

In the last video we created the logic for a new endpoint GET /items/:id, where the :id segment is dynamic. Let's now smoke test it with Postman.

To begin, we'll let's create a new request. The URL for this request is going to require a valid Mongo ID.

We can easily get one of these by first running the GET /items request, since each item returned will include it's ID. For example, I've gotten the value 5b45a2337510941e6cbe99ec.


Back to course page

Click to load comments...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom