You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, one needs to know the desired resource, either by name or by type; and it would be useful to be able to enumerate the available resources, which are available from the raw endpoint https://pokeapi.co/api/v2/
However, in the current version pokeapi.do() is private, so cannot be used. Same for pokeapi.apiurl and pokeapi.c to take advantage of the cache.
If do was public, this would solve the issue nicely by allowing a simple call to pokeapi.Do(''), or a wrapper could be added if the desire to keep do private remains, like pokeapi.APISchema() map[string]string.
The text was updated successfully, but these errors were encountered:
Currently, one needs to know the desired resource, either by name or by type; and it would be useful to be able to enumerate the available resources, which are available from the raw endpoint https://pokeapi.co/api/v2/
However, in the current version
pokeapi.do()
is private, so cannot be used. Same forpokeapi.apiurl
andpokeapi.c
to take advantage of the cache.If
do
was public, this would solve the issue nicely by allowing a simple call topokeapi.Do('')
, or a wrapper could be added if the desire to keepdo
private remains, likepokeapi.APISchema() map[string]string
.The text was updated successfully, but these errors were encountered: