This project is about things that are special to me, like my favorite anime and learn a new programming language, in that case C# with EntityFramework.
The purpose of this initiative is to provide an API REST that will allow users to get all kinds of information about the anime.
- Pokemon
- Pokemondb
- Bulbapedia Legendary Pokemons
- Bulbapedia Mythical Pokemons
- Mythical Pokemon part 1
- Mythical Pokemon part 2
- Mythical Pokemon part 3
- Mythical Pokemon part 4
Routes | Description | Methods HTTP | Params and type |
---|---|---|---|
/pokemon/AllPokemons | return all pokemons of the anime | GET | Don't need |
/pokemon/AllTypes | return all types of pokemons | GET | Don't need |
/pokemon/AllRegions | return all regions | GET | Don't need |
/pokemon/AllLegendaryPokemons | return all legendary pokemons the anime | GET | Don't need |
/pokemon/AllMythicalPokemons | return all mythical pokemons the anime | GET | Don't need |
/pokemon/PokemonByPodexNumber/#PokedexNumber | return a specific pokemon | GET | PokedexNumber: int |
/pokemon/PokemonByName/#Name | return a specific pokemon or all pokemons starts with that words | GET | Name: string |
/pokemon/PokemonsByGeneration/#Generation | return all pokemons of a specific generation | GET | Generation: string |
/pokemon/LegendaryPokemonsByGeneration/#Generation | return all legendary pokemons by a specific generation | GET | Generation: string |
/pokemon/MythicalPokemonsByGeneration/#Generation | return all mythical pokemons by a specific generation | GET | Generation: string |
/pokemon/PokemonsByTypeID/#TypeID | return all pokemons of a specific type ID | GET | TypeID: int |
/pokemon/PokemonsByTypeIDAndGeneration/#TypeID/#Generation | return all pokemons of a specific typeID and a specific generation | GET | TypeID: int and Generation: string |
/pokemon/PokemonsByTypeName/#TypeName | return all pokemons of a specific type name | GET | TypeName: string |
/pokemon/PokemonsByTypeNameAndGeneration/#TypeName/#Generation | return all pokemons of a specific typeName and a specific generation | GET | TypeName: string and Generation: string |
{
"Pokemon": [
{
"PokemonID": 25,
"NationalPokedexNumber": 25,
"Name": "Pikachu",
"Generation": "First",
"Evolve": true,
"Legendary": false,
"Mythical": false,
"Image": "https://assets.pokemon.com/assets/cms2/img/pokedex/detail/025.png",
"RegionID": 1,
"PokemonTypeID": 5
}
]
}
git clone [email protected]:VictorMessina/API-Pokemon.git
- API_Pokemon
- 1 - Change the connection string in the file Web.config for your connection string and save the changes.
- 2 - Go to the Visual Studio package manager and write this: update-database.
- 3 - press enter and wait the migrations finish the job.
- select the project and lauch the application
- localhost:50594/pokemon/MythicalPokemonsByGeneration/second
- 1 - install the Visual Studio
- 2 - Choose one database and install
- 3:
- 3.1 - Change the connection string in the file Web.config for your connection string and save the changes.
- 3.2 - Go to the Visual Studio package manager and write this: update-database.
- 3.3 - press enter and wait the migrations finish the job.
- 4 - select the project and lauch the application
- 5 - Finaly you can use any route with the right params. Example: localhost:50594/pokemon/MythicalPokemonsByGeneration/second