Skip to content

[Feature] Implement Get Pokemon by Name #3

@sbmsr

Description

@sbmsr

What you need to do

Our API needs to support the ability to get a Pokemon by Name

Expected behavior

  1. a request to http://localhost:3000/pokemon/name/mew should return HTTP status 200 and the following JSON body
{
    id: 151,
    name: { english: "Mew", japanese: "ミュウ", chinese: "梦幻", french: "Mew" },
    type: ["Psychic"],
    base: { HP: 100, Attack: 100, Defense: 100, "Sp. Attack": 100, "Sp. Defense": 100, Speed: 100 },
}
  1. a request to http://localhost:3000/pokemon/name/jobsimulator should return HTTP status 404 and the following JSON body
{
    error: "Not found"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions