Rest api for serving the list of pokemons with their name, types and images in docker container
To Setup this project clone this project
git clone https://github.com/SumitAchaju/pokemon.git
Run
docker compose up --build
Note: Make sure docker is installed and initilized in your computer and you are in root directory of this project.
Then the fastapi server is hosted in localhost:8000
Load 100 pokemons data from https://pokeapi.co/
GET /api/pokemon/loaddata
Note: Pokemon table must be empty in database to load this data
GET /api/v1/pokemon
GET /api/v1/pokemon
Parameter | Type | Description |
---|---|---|
name |
string |
Optional. name of pokemon |
type |
string |
Optional. type name of pokemon |
POST /api/v1/pokemon
Body | Type | Description |
---|---|---|
name |
string |
Required. keyword to filter pokemon by name |