Skip to content

Instantly share code, notes, and snippets.

@travelingtonic
Created December 6, 2018 03:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save travelingtonic/4d5b1a80f0e723ede23cedd6f70048fb to your computer and use it in GitHub Desktop.
Save travelingtonic/4d5b1a80f0e723ede23cedd6f70048fb to your computer and use it in GitHub Desktop.
Simple GET Requests Assignments
Assignments
1. Create an app that lets users choose to display between 1 and 50 random dog images, then prints the results to the console. The app should feature a form with a required input where users indicate the number of images to retrieve, and the input should default to 3. Use the endpoint described in the "DISPLAY MULTIPLE RANDOM IMAGES FROM ALL DOGS COLLECTION" section of this page of the DogAPI docs.
https://repl.it/@travelingtonic/simple-get-assignment-1
2. Building on the previous app, create an app that lets users choose to display between 1 and 50 random dog images, then loads the images in the console. This app should adhere to all of the requirements from the first one, in addition to displaying the images in the DOM.
https://repl.it/@travelingtonic/simple-get-assignment-2
3. Create an app that loads a single random image for a specific breed. This app should account for the happy case when the breed is found, as well as the unhappy case when it is not. Use the endpoint described in the "RANDOM IMAGE FROM A BREED COLLECTION" section of this page of the DogAPI docs. Note that the API will return an HTTP status code of 404 along with a JSON object with info about the error if a request is made for a breed that can't be found.
https://repl.it/@travelingtonic/simple-get-assignment-4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment