Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Feature] Implement Get Pokemon by ID #2

Copy link
Copy link
@sbmsr

Description

@sbmsr
Issue body actions

What you need to do

Our API needs to support the ability to get a Pokemon by ID.

Expected behavior

  1. a request to http://localhost:8000/pokemon/482/ should return HTTP status 200 and the following JSON body
{
	"id": 482,
	"name_english": "Azelf",
	"name_japanese": "アグノム",
	"name_chinese": "亚克诺姆",
	"name_french": "Créfadet",
	"hp": 75,
	"attack": 70,
	"defense": 125,
	"special_attack": 125,
	"special_defense": 70,
	"speed": 115,
	"types": [
		{
			"type": "Psychic"
		}
	]
}
  1. a request to http://localhost:8000/pokemon/999999999 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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.