PokeDexApi is a simple version of PokeApi with search functionality.

Overview

PokeDex Api

PokeDexApi is a simple version of PokeApi with search functionality based on KTOR.

Documentation

Base Url

https://poki-dex.herokuapp.com

EndPoints

/pokemons

Return List of all the Pokemons

Expected query Parameters

page

Use this to page through the results if the total results found is greater than the page size. Default value is 1.

pageSize

The number of results to return per page. Default value is 10.

Example

https://poki-dex.herokuapp.com/pokemons?page=2&pageSize=30

Response

data class AllPokemonResponse(
    val success: Boolean,
    val total: Int,
    val message: String? = null,
    val previousPage: Int? = null,
    val nextPage: Int? = null,
    val pokemons: List<Pokemon>
)

Pokemon

data class Pokemon(
    val id: Int, 
    val name: String, 
    val imageUrl: String,
    val types: List<Type>
)

// Type
data class Type(
    val name: String
)

/pokemons/search

Return List of Pokemons based on search query.

Expected query Parameters

name

Pass a text query to search for a pokemon. Default value is ""

page

Use this to page through the results if the total results found is greater than the page size. Default value is 1.

pageSize

The number of results to return per page. Default value is 20.

Example

https://poki-dex.herokuapp.com/pokemons/search?name=ch&page=1&pageSize=20

Response

data class SearchResponse(
    val success: Boolean,
    val message: String,
    val previousPage: Int? = null,
    val nextPage: Int? = null,
    val pokemons: List<Pokemon>
)

/pokemons/detail

Return Single Pokemon Details based on its id.

Expected query Parameters

id

Use this to get the result for particular passed id. Default value is 1.

Example

https://poki-dex.herokuapp.com/pokemons/detail?id=2

Response

data class PokemonDetailResponse(
    val success: Boolean,
    val message: String? = null,
    val pokemon: PokemonDetail?=null
)

PokemonDetail

data class PokemonDetail(
    val id: Int,
    val name: String,
    val imageUrl: String,
    val weight: Int,
    val height: Int,
    val abilities: List<Ability>,
    val stats: List<Stat>,
    val types: List<Type>
)

// Ability
data class Ability(
    val name: String
)

// Stat
data class Stat(
    val name: String,
    val base_stat: Int
)

// Type
data class Type(
    val name: String
)
You might also like...
Application to allow user to search his favourite repositories from Github.
Application to allow user to search his favourite repositories from Github.

Github Search Repositories App details: The application contain one screen with a search field and list of repositories. After the user inputs, the se

A podcast proxy that sits between itunes search api and android apps allowing normalization of rss feeds to standard Json format that can be consumed by apps.

Podcasts Rss Feeds Search Proxy A podcast proxy written using kotlin dsl that sits between itunes search api, podcasts rss feeds and android apps allo

Lucilla - Fast, efficient, in-memory Full Text Search for Kotlin

Lucilla Lucilla is an in-memory Full Text Search library for Kotlin. It allows t

Add Ios Swipe Search TextField Component in Android Jetpack Compose.
Add Ios Swipe Search TextField Component in Android Jetpack Compose.

IosSwipeSearchCompose Add Ios Swipe Search TextField Component in Android Jetpack Compose. How it looks Usage val text = remember { mutableStateOf("")

An library to help android developers working easly with activities and fragments (Kotlin version)
An library to help android developers working easly with activities and fragments (Kotlin version)

AFM An library to help android developer working easly with activities and fragments (Kotlin) Motivation Accelerate the process and abstract the logic

This is our new version of chatkit

ChatKitV4 (This read me is under develop) This is our new version of chatkit. Here we seprate Core Logic and UI sections. You can use it as seprate mo

The sample App implements type safe SQL by JOOQ & DB version control by Flyway

The sample App implements type safe SQL by JOOQ & DB version control by Flyway Setup DB(PostgreSQL) $ docker compose up -d Migration $ ./gradlew flywa

A Gradle plugin providing various utility methods and common code required to set up multi-version Minecraft mods.

Essential Gradle Toolkit A Gradle plugin providing various utility methods and common code required to set up multi-version Minecraft mods via archite

Checks for app updates and automatically updates the current app if the new one in local storage have a different version

Silent Android App Update Sample This sample shows how to update Android app silently without user confirmation with a device owner app. It works on A

Owner
Rohit Sharma
Android App Developer | Java | Kotlin
Rohit Sharma
A simple store project that includes a list of products, search on products, details of the product, and review submission.

AdidasTest A simple store project that includes a list of products, search on products, details of the product, and review submission. Summary Technol

Mohammad 5 May 8, 2021
Kotlin snippets that you can understand quickly, using only stdlib functionality.

Support this and other projects from Ivan Mwiruki here. 30 seconds of Kotlin Curated collection of useful Kotlin 1.3 snippets that you can understand

Ivan Moto 246 Dec 19, 2022
Library to generalize functionality between several projects

libreforge libreforge is a library to generalize functionality between several projects, notably EcoArmor, EcoWeapons, and Reforges. Get from JitPack:

Auxilor 20 Dec 20, 2022
Kotter - aims to be a relatively thin, declarative, Kotlin-idiomatic API that provides useful functionality for writing delightful console applications.

Kotter (a KOTlin TERminal library) aims to be a relatively thin, declarative, Kotlin-idiomatic API that provides useful functionality for writing delightful console applications.

Varabyte 348 Dec 21, 2022
A basic Kotlin implementation of Facebook's memcache lease functionality.

Liftgate Lease A basic Kotlin implementation of Facebook's memcache lease functionality. How it works If the cache key is empty or has been invalidate

null 6 Nov 10, 2022
Modern flashlight app with dim functionality on Android 13+

FlashDim About this project Features Download Supported devices Screenshots Contribute Used Icons License About this project Starting with Android 13,

Niko Diamadis 35 Jan 2, 2023
Search in the categories of movies, music, e-books and podcasts with the keyword

CaseStudy In this application, you can search in the categories of movies, music, e-books and podcasts with the keyword you want, add them to your fav

Abdullah Furkan Titiz 4 Dec 6, 2021
Search image app [Adanian Labs Interview], Android developer role

Pixar This is App shows you Images from the Pixabay API Table of Contents Functionalities Approach Screenshots How To Setup Libraries Used Author Info

Abdulfatah Mohamed 2 Dec 20, 2022
An Android app consuming Pixabay API to search and display list of images, built with MVVM pattern

Images An Android app consuming Pixabay API to search and display list of images, built with MVVM pattern as well as Architecture Components. Min Api

Ronnie Otieno 8 Sep 21, 2022