Skip to content

Flask API with PostgreSQL db with all species of tarantulas and location where you can find them

Notifications You must be signed in to change notification settings

morveusz93/taranatula-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TARANTULAS INFO

This app serves infos about every tarantula at world.

Flask app deployed on Heroku. Database: PostrgeSQL at ElephantSQL.com

Database crated by scrapping The Tarantupedia

Link

What info can i get from this API?

At first I have created the API to collect all species names of every Tarantula worldwide. But then i decided to add info about country where it lives in nature.

Endpoints


https://tarantulas.herokuapp.com/tarantulas/families

Returns lits of all families and number of species in each


https://tarantulas.herokuapp.com/tarantulas/family/<name of family>'

Returns lits of all genus in the family and number of species in each


https://tarantulas.herokuapp.com/tarantulas/genus/<name of genus>'

Returns lits of all species in the genus and laction where each lives


https://tarantulas.herokuapp.com/tarantulas/location/<name of location>'

Returns list of all species that live in the location

Reponse

Standard response looks like:
curl -i https://tarantulas.herokuapp.com/tarantulas/genus/caribena :

{
  "Caribena": [
    {
      "family": "Aviculariinae", 
      "location": [
        "Puerto Rico", 
        "Brazil"
      ], 
      "species": "Caribena laeta"
    }, 
    {
      "family": "Aviculariinae", 
      "location": [
        "Martinique"
      ], 
      "species": "Caribena versicolor"
    }
  ]
}

About

Flask API with PostgreSQL db with all species of tarantulas and location where you can find them

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages