- Returns a list of all Pokémon in the database.
- Returns Pokémon matching the provided name.
- Adds a new Pokémon to the database.
- Requires
name,image,sound, andcreatorfields in the request body. - Supported image formats: jpg, jpeg, png.
- Supported audio format: mp3.
- Deletes a Pokémon from the database.
- Requires the
nameandcreatorfields in the request body.
curl http://localhost:3000/pikachu
curl -X POST -H "Content-Type: application/json" -d '{"name":"Charizard","image":"charizard.jpg","sound":"charizard.mp3","creator":"Ash"}' http://localhost:3000/
curl -X DELETE -H "Content-Type: application/json" -d '{"creator":"Ash"}' http://localhost:3000/charizard