pokeapi icon indicating copy to clipboard operation
pokeapi copied to clipboard

Prefix search suggestions must be included to enhance convenience

Open shelobel opened this issue 1 year ago • 1 comments

If a user doesn't know the complete name of a pokemon, they must be able to view suggestions for their prefix of a word or similar strings. This must be an added feature for the search bar.

shelobel avatar Oct 08 '23 07:10 shelobel

Just make a query like this https://pokeapi.co/api/v2/pokemon?limit=10000&offset=0 to get all possible end points available in the api you would get the following format of data

{
    "count":1302,
    "next":null,
    "previous":null,
    "results":[
        {
            "name":"bulbasaur",
            "url":"https://pokeapi.co/api/v2/pokemon/1/"
        },
        ...
    ]
}

You can parse names and id from this

FallenDeity avatar Dec 24 '23 07:12 FallenDeity