Simple Rest Api built on .Net platform that allows user to manage his own Pokedex.
- CRUD
- JWT Authentication
- Dapper library to communicate with database
- Entity Framework to manage accounts
- MsSql
- Swagger
- Searching by types, names
- Error handling
- Model validation
- /api/accounts/create - Create new account
- /api/accounts/login - Log in to existing account
- /api/pokemons - List of all pokemons in Pokedex
- /api/pokemons/{id} - Find pokemon by given id
- /api/pokemons/counter - Number of pokemons in Pokedex
- /api/pokemons/searchbyname/{name} - Search pokemon by name
- /api/pokemons/searchbytype/{type} - Search pokemons by type
- /api/pokemons - Add new pokemon to Pokedex
- /api/pokemons/{id} - Edit pokemon in your pokedex
- /api/pokemons/{id} - Delete pokemon from your pokedex
https://localhost:44340/api/Pokemons/2
{
"id": 2,
"name": "Ivysaur",
"type": "Grass, Poison",
"abilities": "Overgrow",
"hp": 60,
"attack": 62,
"specialAttack": 80,
"defense": 63,
"specialDefense": 80,
"speed": 60,
"height": 3.03,
"weight": 28.7,
"description": "When the bulb on its back grows large, it appears to lose the ability to stand on its hind legs.",
"added": "2021-06-24T20:30:30.283",
"modified": "2021-06-24T20:30:30.283"
}
Maciej Winnik