-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
What you need to do
Our API needs to support the ability to get a Pokemon by Name
Expected behavior
- 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 },
}- 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
Labels
No labels