Skip to content

[Feature] Implement Get Pokemon by Type #4

@sbmsr

Description

@sbmsr

What you need to do

Our API needs to support the ability to Get Pokemon by Type

Expected behavior

  1. a request to http://localhost:3000/pokemon/type/fairy should return HTTP status 200 and the following JSON body
 [
    {
      id: 35,
      name: { english: "Clefairy", japanese: "ピッピ", chinese: "皮皮", french: "Mélofée" },
      type: ["Fairy"],
      base: { HP: 70, Attack: 45, Defense: 48, "Sp. Attack": 60, "Sp. Defense": 65, Speed: 35 },
    },
    {
      id: 36,
      name: { english: "Clefable", japanese: "ピクシー", chinese: "皮可西", french: "Mélodelfe" },
      type: ["Fairy"],
...
  1. a request to http://localhost:3000/pokemon/type/webdevwithseb should return HTTP status 400 and the following JSON body
{
    error: "Bad request"
}

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