Open
Description
4# 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:8000/pokemon/name/mew should return HTTP status 200 and the following JSON body
{
"id": 151,
"name_english": "Mew",
"name_japanese": "ミュウ",
"name_chinese": "梦幻",
"name_french": "Mew",
"hp": 100,
"attack": 100,
"defense": 100,
"special_attack": 100,
"special_defense": 100,
"speed": 100,
"types": [
{
"type": "Psychic"
}
]
}
- a request to http://localhost:8000/pokemon/name/jobsimulator should return HTTP status 404 and the following JSON body
{
error: "Not found"
}
Metadata
Metadata
Assignees
Labels
No labels