Skip to content

bryxnt1/random-cat-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

General Assembly Logo

Random Cat API

Now that you've worked in APIs, learn how to comb through an API's documentation! By reading about what an API can do and how to use it, you'll be able to add amazing features and functionality to your projects and applications.

Prerequisites

  • DOM & Events
  • APIs & AJAX

Instructions

  1. Fork and clone this repository.
  2. Change into the new directory.
  3. Fulfill the listed requirements.

Starter code is available in lib/. You are required to turn in your submission by making a pull request on the original repository.

Requirements

Part 1

First, use fetch() to make a GET request to the Cat API and console log the response object.

How will you know if your request was successful?

Part 2

Next, use the Cat API to display an image of a random cat every time the user clicks a button! You will add functionality to the Random Cat button that has been provided for you.

  • Add functionality so that when the Random Cat button is clicked, an image of a random cat appears!

Bonus

When a user enters the name of the category into the input field, a random cat from that category appears!

Plagiarism

Take a moment to refamiliarize yourself with the Plagiarism policy. Plagiarized work will not be accepted.

  1. All content is licensed under a CC­BY­NC­SA 4.0 license.
  2. All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact legal@ga.co.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 53.9%
  • CSS 26.8%
  • JavaScript 19.3%