Skip to content

dterana/Pokedex-API

Repository files navigation

A Pokedex API based on the vapor framework

V0 : Display of some basics informations about each of the 718 firsts Pokemons.

  • Vapor Toolbox v1.0.3
  • Swift 3.0.1
  • PostgreSQL 9.6.1

Configuration

In the folder Config, create a secrets folder

In this folder, create a postgresql.json file with your personnal datas

{
    "host": {HostAddress},
    "user": {User},
    "password": {Password},
    "database": {DatabaName},
    "port": {Port}
}

Requests

Format

url/api/{version}/{filter}/{value} https://pokedex-vapor.herokuapp.com/api/v0/{filter}/{value}

You can make request on 2 attributes: index or name

Exemples:

https://pokedex-vapor.herokuapp.com/api/v0/index/002

https://pokedex-vapor.herokuapp.com/api/v0/name/pikachu

The API is hosted on a free Heroku account. Due to free account limitations,the first request to the API can take 15-20 secondes (Time for server instance to wake-up).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published