Skip to content

[Feature] Implement Get Pokemon by Type #3

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
sbmsr opened this issue Nov 18, 2022 · 0 comments
Open

[Feature] Implement Get Pokemon by Type #3

sbmsr opened this issue Nov 18, 2022 · 0 comments

Comments

@sbmsr
Copy link
Member

sbmsr commented Nov 18, 2022

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"
}
JunYuHuang added a commit to JunYuHuang/express-js-backend that referenced this issue Apr 11, 2023
antono91 added a commit to antono91/cbm-express-js-backend that referenced this issue Aug 11, 2023
clowjs added a commit to clowjs/express-js-backend that referenced this issue Nov 28, 2023
AjelmarMedina added a commit to AjelmarMedina/express-js-backend that referenced this issue Dec 16, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant