Skip to content

Commit

Permalink
fix: document PokeAPI/pokeapi#457
Browse files Browse the repository at this point in the history
  • Loading branch information
Naramsim committed Oct 25, 2021
1 parent 4cc8951 commit 331d81f
Showing 1 changed file with 73 additions and 78 deletions.
151 changes: 73 additions & 78 deletions src/docs/pokemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -732,130 +732,96 @@
"description": "Pokémon are the creatures that inhabit the world of the Pokémon games. They can be caught using Pokéballs and trained by battling with other Pokémon. Each Pokémon belongs to a specific species but may take on a variant which makes it differ from other Pokémon of the same species, such as base stats, available abilities and typings. See [Bulbapedia](http://bulbapedia.bulbagarden.net/wiki/Pok%C3%A9mon_(species)) for greater detail.",
"exampleRequest": "/v2/pokemon/{id or name}/",
"exampleResponse": {
"id": 12,
"name": "butterfree",
"base_experience": 178,
"height": 11,
"id": 35,
"name": "clefairy",
"base_experience": 113,
"height": 6,
"is_default": true,
"order": 16,
"weight": 320,
"order": 56,
"weight": 75,
"abilities": [{
"is_hidden": true,
"slot": 3,
"ability": {
"name": "tinted-lens",
"url": "$BASE_URL/v2/ability/110/"
"name": "friend-guard",
"url": "$BASE_URL/v2/ability/132/"
}
}],
"forms": [{
"name": "butterfree",
"url": "$BASE_URL/v2/pokemon-form/12/"
"name": "clefairy",
"url": "$BASE_URL/v2/pokemon-form/35/"
}],
"game_indices": [{
"game_index": 12,
"game_index": 35,
"version": {
"name": "white-2",
"url": "$BASE_URL/v2/version/22/"
}
}],
"held_items": [{
"item": {
"name": "silver-powder",
"url": "$BASE_URL/v2/item/199/"
"name": "moon-stone",
"url": "$BASE_URL/v2/item/81/"
},
"version_details": [{
"rarity": 5,
"version": {
"name": "y",
"url": "$BASE_URL/v2/version/24/"
"name": "ruby",
"url": "$BASE_URL/v2/version/7/"
}
}]
}],
"location_area_encounters": "https://pokeapi.co/api/v2/pokemon/12/encounters",
"location_area_encounters": "/api/v2/pokemon/35/encounters",
"moves": [{
"move": {
"name": "flash",
"url": "$BASE_URL/v2/move/148/"
"name": "pound",
"url": "$BASE_URL/v2/move/1/"
},
"version_group_details": [{
"level_learned_at": 0,
"level_learned_at": 1,
"version_group": {
"name": "x-y",
"url": "$BASE_URL/v2/version-group/15/"
"name": "red-blue",
"url": "$BASE_URL/v2/version-group/1/"
},
"move_learn_method": {
"name": "machine",
"url": "$BASE_URL/v2/move-learn-method/4/"
"name": "level-up",
"url": "$BASE_URL/v2/move-learn-method/1/"
}
}]
}],
"species": {
"name": "butterfree",
"url": "$BASE_URL/v2/pokemon-species/12/"
},
"sprites": {
"back_female": "http://pokeapi.co/media/sprites/pokemon/back/female/12.png",
"back_shiny_female": "http://pokeapi.co/media/sprites/pokemon/back/shiny/female/12.png",
"back_default": "http://pokeapi.co/media/sprites/pokemon/back/12.png",
"front_female": "http://pokeapi.co/media/sprites/pokemon/female/12.png",
"front_shiny_female": "http://pokeapi.co/media/sprites/pokemon/shiny/female/12.png",
"back_shiny": "http://pokeapi.co/media/sprites/pokemon/back/shiny/12.png",
"front_default": "http://pokeapi.co/media/sprites/pokemon/12.png",
"front_shiny": "http://pokeapi.co/media/sprites/pokemon/shiny/12.png",
"other": {
"dream_world": {},
"official-artwork": {}
},
"versions": {
"generation-i": {
"red-blue": {},
"yellow": {}
},
"generation-ii": {
"crystal": {},
"gold": {},
"silver": {}
},
"generation-iii": {
"emerald": {},
"firered-leafgreen": {},
"ruby-sapphire": {}
},
"generation-iv": {
"diamond-pearl": {},
"heartgold-soulsilver": {},
"platinum": {}
},
"generation-v": {
"black-white": {}
},
"generation-vi": {
"omegaruby-alphasapphire": {},
"x-y": {}
},
"generation-vii": {
"icons": {},
"ultra-sun-ultra-moon": {}
},
"generation-viii": {
"icons": {}
}
}
"name": "clefairy",
"url": "$BASE_URL/v2/pokemon-species/35/"
},
"stats": [{
"base_stat": 70,
"base_stat": 35,
"effort": 0,
"stat": {
"name": "speed",
"url": "$BASE_URL/v2/stat/6/"
}
}],
"types": [{
"slot": 2,
"slot": 1,
"type": {
"name": "flying",
"url": "$BASE_URL/v2/type/3/"
"name": "fairy",
"url": "$BASE_URL/v2/type/18/"
}
}],
"past_types": [{
"generation": {
"name": "generation-v",
"url": "$BASE_URL/v2/generation/5/"
},
"types": [
{
"slot": 1,
"type": {
"name": "normal",
"url": "$BASE_URL/v2/type/1/"
}
}
]
}]
},
"responseModels": [
Expand Down Expand Up @@ -945,6 +911,14 @@
"of": "PokemonMove"
}
},
{
"name": "past_types",
"description": "A list of details showing types this pokémon had in previous generations",
"type": {
"type": "list",
"of": "PokemonTypePast"
}
},
{
"name": "sprites",
"description": "A set of sprites used to depict this Pokémon in the game. A visual representation of the various sprites can be found at <a href='https://github.com/PokeAPI/sprites#sprites'>PokeAPI/sprites</a>",
Expand Down Expand Up @@ -1017,6 +991,27 @@
}
]
},
{
"name": "PokemonTypePast",
"fields": [
{
"name": "generation",
"description": "The last generation in which the referenced pokémon had the listed types.",
"type": {
"type": "NamedAPIResource",
"of": "Generation"
}
},
{
"name": "types",
"description": "The types the referenced pokémon had up to and including the listed generation.",
"type": {
"type": "list",
"of": "PokemonType"
}
}
]
},
{
"name": "PokemonHeldItem",
"fields": [
Expand Down

0 comments on commit 331d81f

Please sign in to comment.