http://localhost:8080
GET /pokemons
[
{
"_id": "65f4b1b2c5f8d9e4c1234567",
"nom": "Bulbasaur",
"types": ["Grass", "Poison"],
"total": 318,
"hp": 45,
"att": 49,
"def": 49,
"vitesse": 45,
"id_evolution": 2
}
]GET /pokemons/{id}
GET /pokemons/65f4b1b2c5f8d9e4c1234567
200 OK→ Pokemon found404 Not Found400 Bad Request→ Invalid ObjectId format
POST /pokemons
Content-Type: application/json
{
"nom": "Charmander",
"types": ["Fire"],
"total": 309,
"hp": 39,
"att": 52,
"def": 43,
"vitesse": 65,
"id_evolution": 5
}201 Created→ Returns inserted ObjectId
DELETE /pokemons/{id}
200 OK404 Not Found
Make sure Docker is installed.
# Verify docker version
docker --version
# Verify docker compose version
docker compose versiondocker compose up --buildMongoDB runs inside a container and is connected internally via environment variables.
http://localhost:8080