From 8f17adf2c633fab1516aeaf6512f49c09e4ea035 Mon Sep 17 00:00:00 2001 From: Ryan Pisuena Date: Wed, 8 Aug 2018 10:12:52 -0700 Subject: [PATCH] fix(challenges): spelling and grammar errors addressed --- .../05-apis-and-microservices/basic-node-and-express.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/05-apis-and-microservices/basic-node-and-express.json b/challenges/05-apis-and-microservices/basic-node-and-express.json index 2242d8ab9..3d7e4836e 100644 --- a/challenges/05-apis-and-microservices/basic-node-and-express.json +++ b/challenges/05-apis-and-microservices/basic-node-and-express.json @@ -188,7 +188,7 @@ "id": "587d7fb2367417b2b2512bf5", "title": "Get Route Parameter Input from the Client", "description": [ - "When building an API, we have to allow users to comunicate us what they want to get from our service. For example, if the client is requesting information about a user stored in the database, they need a way to let us know which user they're interested in. One possible way to achieve this result is using route parameters. Route parameters are named segments of the URL, delimited by slashes (/). Each segment captures the value of the part of the URL which matches its position. The captured values can be found in the req.params object.", + "When building an API, we have to allow users to communicate with us what they want to get from our service. For example, if the client is requesting information about a user stored in the database, they need a way to let us know which user they're interested in. One possible way to achieve this result is using route parameters. Route parameters are named segments of the URL, delimited by slashes (/). Each segment captures the value of the part of the URL which matches its position. The captured values can be found in the req.params object.", "
route_path: '/user/:userId/book/:bookId'
actual_request_URL: '/user/546/book/6754'
req.params: {userId: '546', bookId: '6754'}
", "Build an echo server, mounted at the route GET /:word/echo. Respond with a JSON object, taking the structure {echo: word}. You can find the word to be repeated at req.params.word. You can test your route from your browser's address bar, visiting some matching routes, e.g. your-app-rootpath/freecodecamp/echo" ],