Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed REST APIs with Express!
You have completed REST APIs with Express!
Preview
We'll continue to use the records.js module to create an endpoint to retrieve a specific quote.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
The client will send us a request
containing the unique ID number of
0:00
the requested quote.
0:01
We'll use that number to find
the correct quote in our data store, and
0:02
then we'll send that
quote back to the client.
0:06
Make sure that you've deleted the code
inside of this route that returns a single
0:09
quote, and type records.getQuote.
0:13
If we hover over getQuote, we can see
that it takes one parameter, an ID.
0:18
Remember that each quote
contains a unique ID number.
0:23
This function takes that unique ID number,
finds the right quote and returns it so
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up