Skip to content

Commit

Permalink
add cats and birds too
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmaxwellhyland committed Oct 28, 2024
1 parent e9d8fae commit c022dd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ApiConsumption/DogFetcherCodeAlong.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The starter project has quite a bit of code, but it's all HTML and CSS! In the *
All of these elements will be necessary to make the website functional.

### NOT WORKING: The [shibe.online](https://shibe.online/) API
_Note: the shibe.online API appears to be down. Use [give-me-dogs.glitch.me/dogs](https://give-me-dogs.glitch.me/dogs) instead._
_Note: the shibe.online API appears to be down. Use [give-me-dogs.glitch.me/dogs](https://give-me-dogs.glitch.me/dogs) instead. You can check out the [source code](https://glitch.com/edit/#!/give-me-dogs) too._

The code needs something to fetch, and luckily, there is an API that provides random pictures of shiba inu dogs! These adorable pups are also known as "shibes" in internet parlance - hence the name, [shibe.online](https://shibe.online/). Take a look at the homepage to learn more about how the API works.

Expand Down
6 changes: 3 additions & 3 deletions ApiConsumption/DogFetcherSelfPacedWork.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
Follow these instructions to make some updates to the Dog Fetcher website.

## 🐦 Birds & Cats 🐈
Dogs are cool. Dogs are _really_ cool. But it might be even cooler to show images of other animals too! Luckily, **shibe.online** has APIs for birds and cats in addition to dogs! Incorporate these into the Dog Fetcher site.
Dogs are cool. Dogs are _really_ cool. But it might be even cooler to show images of other animals too! Luckily, **give-me-dogs.glitch.me** has APIs for birds and cats in addition to dogs! Incorporate these into the Dog Fetcher site.

### Basic Challenge: Replace
The simple way to do this would be to replace the `shibes` URL with one that points to either `birds` or `cats`. Basically, the base URL should look something like this instead:
The simple way to do this would be to replace the `dogs` URL with one that points to either `birds` or `cats`. Basically, the base URL should look something like this instead:

```
https://shibe.online/api/birds
https://give-me-dogs.glitch.me/cats
```

Update the URL in the `fetch` call to grab images of a different kind of animal. Then, update all the HTML to reflect the new type of animal!
Expand Down

0 comments on commit c022dd7

Please sign in to comment.