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

How to deal with subresources #63

Open
hellow554 opened this issue Oct 23, 2020 · 1 comment
Open

How to deal with subresources #63

hellow554 opened this issue Oct 23, 2020 · 1 comment

Comments

@hellow554
Copy link

e.g.

pokepy.V2Client().get_generation(1).pokemon_species[0]

is a NamedApiResource which points to PokemonSpecies

I haven't figured out yet, how to get the data from that NamedApiResource. Is there an easy way, e.g. get()?

@Kronopt
Copy link
Member

Kronopt commented Oct 23, 2020

At this moment you can't get that data directly with pokepy.

I was working on hypermedia resources a while ago to handle those kinds of situations, but I haven't had the time to work on it...
My work is on the pagination branch, if you want to check it out

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

No branches or pull requests

2 participants