Skip to content

Fixing incorrect endpoint query #182

@digitalghost-dev

Description

@digitalghost-dev

The species lookup for regional/alternate forms (e.g., exeggutor-alola) would error out. This will be fixed by querying the pokemon-species endpoint with the base species name instead of the form name.

The PokemonJSONStruct has now added a new struct to it:

type PokemonJSONStruct {
    ....
	Species struct {
		Name string `json:"name"`
		URL  string `json:"url"`
	} `json:"species"`
}

The call to connections.PokemonSpeciesApiCall() will also use pokemonStruct.Species.Name instead of user input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/fixSomething isn't working or needs updating.

    Projects

    Status

    Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions