This is just an experiment to show you how to use Flight and PokeAPI to create a simple API.
- Clone this repository
git clone https://github.com/n0nag0n/flight-pokeapi
- Install dependencies
composer install
- Run the server
php -S localhost:8080 -t public
You can use the following endpoints:
/
: Hello World/pokemon
: List of all Pokemon Types/pokemon/type/{type}
: List of all Pokemon of a specific type/pokemon/{id}
: Information about a specific Pokemon
This project is open-sourced software licensed under the MIT license.