Get the code:
git clone https://github.com/eliasbobadilla/nodemon.git && cd nodemonRun:
npm install && npm start- Display all Pokemons
curl http://localhost:3000/v1- Paginate
curl http://localhost:3000/v1/paged/?page=1&limit=4- Search Pokemon by Name
curl http://localhost:3000/v1/?name=charizard- Add Pokemon
curl -X POST http://localhost:3000/v1/upsert \
-H 'Content-Type: application/json' \
-d '{
"number": 1000,
"name": "Mega Metapod Test",
"type1": "Bug",
"total": 1000,
"hp": 1000,
"attack": 1000,
"defense": 1000,
"spAtk": 1000,
"spDef": 1000,
"speed": 1000,
"generation": 1,
"legendary": false
}'- Delete Pokemon
curl -X DELETE http://localhost:3000/v1/?id=7This program is licensed under the MIT License.