Skip to content

How to deal with subresources #63

Open

Description

@hellow554

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()?

Activity

  1. Kronopt commented on Oct 23, 2020

    @Kronopt
    Contributor

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions