Welcome to Atlas-Pokémon! Here you can find a lot of info about first-gen pokémon, and even create your own team!!
You can access here:
https://atlas-poke.herokuapp.com/
git repos here:
- https://github.com/C-Inherited/atlas-pokemon-front
- https://github.com/C-Inherited/atlas-pokemon-back
if you like it give us a star! ;)
In our webpage, you will find a navigation bar at the top, where you can access to three sections: trainers, teams, and pokedex. Let's talk more in depth about them!
By clicking the "+" sign in the bottom-right corner, you can create a new trainer. You can choose its name, age, hobby and even a photo, from a wide range of gifs we have selected for you (yayyy!!!)
If you click on the image of a trainer, it's details will appear on the top of the page, so you can check them whenever you want ^^
Here you can check the details from the pokémon of a specific team. The only thing you have to do is
- Select a trainer from the selector on the top
- Click on a trainer's pokémon :D
Also, if the team size is less than 7, you can add a pokémon. Click on the card, write a name and voilà!
* Remember: we only allow first-gen pokèmon
A full list of first-gen pokèmon. Click on any of the pictures and details will be shown :D
Was the first gen 150 or are we missing one?
* Additional notes: due to some problems in the original api (PokeApi), some pokèmon can be missing when trying to find them by Id. This can cause them to not appear on the pokèdex.
The proyect have swagger, when you turn on the server you can see all endpoints in this URL:
http://localhost:8080/swagger-ui.html#
- Trainer Endpoints
PETITION | ROUTE | DESCRIPTION | RESPONSE CODES |
---|---|---|---|
GET | /trainers | Retrieve all trainers details without their pokemon team | |
GET | /trainers/pokemon | Retrieve all trainers details with their pokemon team | |
GET | /trainer/{id} | Retrieve a trainer by id without their pokemon team | 404 Not found if trainer not present |
GET | /trainer/{id}/pokemon | Retrieve a trainer by id with their pokemon team | 404 Not found if trainer not present |
POST | /trainer | Create a trainer , id is not necessary! | |
DELETE | /trainer/{id} | Delete a trainer by id | 404 Not found if trainer not present |
- Pokemon Endpoints
PETITION | ROUTE | DESCRIPTION | RESPONSE CODES |
---|---|---|---|
POST | /pokemon | Add a pokemon to a trainer team | 404 Not found if trainer not present OR 412 Precondition Failed if trainer have 7 or more pokemon in their team |
DELETE | /pokemon/{id} | Delete pokemon by id from a team | 404 Not found if pokemon not present |
CREATE A TRAINER
POST /trainer/ Request
{
"age": 31,
"hobby": "jugar futbol",
"imageUrl": "https://www.seekpng.com/png/detail/242-2421423_pokemon-trainer-sprite-png-pixel-pokemon-trainer-sprites.png",
"name": "Paul"
}
Response
{
"id": 5,
"name": "Paul",
"hobby": "jugar futbol",
"age": 31,
"imageUrl": "https://www.seekpng.com/png/detail/242-2421423_pokemon-trainer-sprite-png-pixel-pokemon-trainer-sprites.png"
}
GET /trainer/1/pokemon Response
{
"id": 1,
"name": "Nerea",
"hobby": "jugar futbol",
"age": 18,
"imageUrl": "https://www.seekpng.com/png/detail/242-2421423_pokemon-trainer-sprite-png-pixel-pokemon-trainer-sprites.png",
"team": [
{
"id": 1,
"pokemonId": 1
},
{
"id": 2,
"pokemonId": 2
},
{
"id": 3,
"pokemonId": 3
},
{
"id": 4,
"pokemonId": 4
},
{
"id": 5,
"pokemonId": 5
},
{
"id": 6,
"pokemonId": 6
},
{
"id": 8,
"pokemonId": 8
}
]
}
POST /pokemon/ REQUEST
{
"pokemonId": 19,
"trainerId": 4
}
RESPONSE
{
"id": 15,
"pokemonId": 19
}```