Skip to content

[Feature] Implement Get Pokemon by Name #3

Open
@sbmsr

Description

@sbmsr

4# What you need to do
Our API needs to support the ability to get a Pokemon by Name

Expected behavior

  1. 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"
		}
	]
}
  1. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions