otienosteve / African-Animal-Facts

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

Home Page:https://african-animal-facts.onrender.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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


Languages

Language:Python 77.1%Language:HTML 22.4%Language:PLpgSQL 0.3%Language:Procfile 0.2%