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

Challenge: Create an endpoint - C++ Tutorial

From the course: Web Servers and APIs using C++

Start my 1-month free trial

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.

Contents