From the course: Web Servers and APIs using C++
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Create an endpoint - C++ Tutorial
From the course: Web Servers and APIs using C++
Challenge: Create an endpoint
(wooshing) - [Instructor] Let's put everything we've learned together with another challenge. Modify the api/contacts route handler to use two query parameters, skip and limit. If skip is valid set the MongoDB skip option to its value. Otherwise, use zero. If limit is valid set the MongoDB limit option to its value. Otherwise, use 10. Here's a little hint of how to convert from string to integer. Give yourself about 10 minutes to solve this challenge and good luck.
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.