Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose the API root #32

Open
fgm opened this issue Feb 21, 2021 · 0 comments
Open

Expose the API root #32

fgm opened this issue Feb 21, 2021 · 0 comments

Comments

@fgm
Copy link

fgm commented Feb 21, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant