This is a pure PHP api to store pokemons. The database is based on a json file. This idea came from a youtube video
git clone https://github.com/newton-peixoto/purePHPapi.git
cd purePHPapi
composer dump-autoload
php -S localhost:8000
The REST API to the example app is described below.
GET /pokemon/
POST /pokemon/
{ "name": "Poke Name", "type" : "Poke Type" }
GET /pokemon/:id
PUT /pokemon/:id/
{ "name": "Poke new Name", "type" : "Poke new Type" }
DELETE /pokemon/:id
{"success":true,"data":"Deleted!"}