From 13a96f4250ffdb2227dc3d656ec36b4de82d3a72 Mon Sep 17 00:00:00 2001 From: krbrennan Date: Thu, 16 Aug 2018 16:51:13 -0400 Subject: [PATCH] fix(challenges): fixed spelling and grammar changed "allow users to comunicate us what they want" TO "allow users to communicate to use what they want" ISSUES CLOSED: #17991 --- .../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..dfcea5ffe 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 to 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" ],