Skip to content

SumitAchaju/pokemon

Repository files navigation

Pokemon Api

Rest api for serving the list of pokemons with their name, types and images in docker container

Setup

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

API Reference

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 all pokemons

GET /api/v1/pokemon

Get filtered pokemons

GET /api/v1/pokemon
Parameter Type Description
name string Optional. name of pokemon
type string Optional. type name of pokemon

Get filtered pokemon by name

POST /api/v1/pokemon
Body Type Description
name string Required. keyword to filter pokemon by name

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published