Skip to content

Inspired by the need to conserve and protect animals this project gives facts about African animals that are not popularly known. Let's save nature

Notifications You must be signed in to change notification settings

otienosteve/African-Animal-Facts

Repository files navigation

AFRICAN ANIMAL FACTS

elephant.jpg

Photo by Wolfgang Hasselmann on Unsplash

Api Documentation

Inspired by Daily Cat Facts

Description

You think you know about african animals- Here are some interesting facts you maybe had not known about them.

This less sophisticated API will give you information about random african Animals.

USAGE

Make a GET request to the following endpoint and be amazed.

https://african-animal-facts.onrender.com/rand

Data is returned from the random Endpoint in the following format


{ 
"animal" : "the animal name"
 "fact" : "fact about the animal"
 "source" : "the fact source" 
}

To get all the facts at once use the following endpoint

https://african-animal-facts.onrender.com/all/

Data is returned from the All Endpoint in the following format

[...

{
"animal": "the animal name" 
"fact": "fact about the animal" 
"source": "the fact source" 
  
 }

{},{},{}

{
"animal": "the animal name" 
"fact": "fact about the animal" 
"source": "the fact source" 
  
}

]

You feel there's something am missing? There's where the fun starts. You can make a POST request to the following enpoint to add data.

https://african-animal-facts.onrender.com/update/

When Making a POST request add data in the following format

{ 
"animal" : "the animal name"
"fact" : "fact about the animal"
"source" : "the fact source" 
}

About

Inspired by the need to conserve and protect animals this project gives facts about African animals that are not popularly known. Let's save nature

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages