18. Exercise: Wikipedia

Exercise: Wikipedia

Now, you're ready to complete some code of your own and deploy a FaaS that reads information from a Wikipedia page.

It's suggested that you copy the exercise code into your Cloud9 environment in a different, working tab and continue working on it as you go through the instructional videos in this tab. This way you can toggle between learning new skills and coding/applying new skills.

To checkout this exercise code, you have two options:

  • Copy the code directly from the Github repository or from the next page.
  • Clone the entire repo from Github and open the appropriate code from the path lambda-functions > wikipedia-query. You can either download the repository with git clone https://github.com/udacity/DevOps_Microservices.git, or download it as a zip file.

Instructions

  • Read in the JSON "body" from an event
  • Get the entity field of the JSON query
  • Format and return a JSON response with health code 200 and the wikipedia information to-be-returned

This is a self-assessed lab. If you need any help or want to check your answers, feel free to check out the solutions notebook in the same folder, or by clicking here.