-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
What you need to do
Our API needs to support the ability to Get Pokemon by Type
Expected behavior
- 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"],
...
- 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
Labels
No labels