Add past Pokemon types information to README

This commit is contained in:
Julian Lawrance 2019-11-30 21:21:01 +00:00
parent 0f6881442f
commit 5dce336fd3

View file

@ -2266,106 +2266,96 @@ Pokémon are the creatures that inhabit the world of the pokemon games. They can
```json ```json
{ {
"id": 12, "id": 35,
"name": "butterfree", "name": "clefairy",
"base_experience": 178, "base_experience": 113,
"height": 11, "height": 6,
"is_default": true, "is_default": true,
"order": 16, "order": 56,
"weight": 320, "weight": 75,
"abilities": [{ "abilities": [{
"is_hidden": true, "is_hidden": true,
"slot": 3, "slot": 3,
"ability": { "ability": {
"name": "tinted-lens", "name": "friend-guard",
"url": "http://pokeapi.co/api/v2/ability/110/" "url": "http://localhost:8000/api/v2/ability/132/"
} }
}], }],
"forms": [{ "forms": [{
"name": "butterfree", "name": "clefairy",
"url": "http://pokeapi.co/api/v2/pokemon-form/12/" "url": "http://localhost:8000/api/v2/pokemon-form/35/"
}], }],
"game_indices": [{ "game_indices": [{
"game_index": 12, "game_index": 35,
"version": { "version": {
"name": "white-2", "name": "white-2",
"url": "http://pokeapi.co/api/v2/version/22/" "url": "http://localhost:8000/api/v2/version/22/"
} }
}], }],
"held_items": [{ "held_items": [{
"item": { "item": {
"name": "silver-powder", "name": "moon-stone",
"url": "http://pokeapi.co/api/v2/item/199/" "url": "http://localhost:8000/api/v2/item/81/"
}, },
"version_details": [{ "version_details": [{
"rarity": 5, "rarity": 5,
"version": { "version": {
"name": "y", "name": "ruby",
"url": "http://pokeapi.co/api/v2/version/24/" "url": "http://localhost:8000/api/v2/version/7/"
}
}]
}],
"location_area_encounters": [{
"location_area": {
"name": "kanto-route-2-south-towards-viridian-city",
"url": "http://pokeapi.co/api/v2/location-area/296/"
},
"version_details": [{
"max_chance": 10,
"encounter_details": [{
"min_level": 7,
"max_level": 7,
"condition_values": [{
"name": "time-morning",
"url": "http://pokeapi.co/api/v2/encounter-condition-value/3/"
}],
"chance": 5,
"method": {
"name": "walk",
"url": "http://pokeapi.co/api/v2/encounter-method/1/"
}
}],
"version": {
"name": "heartgold",
"url": "http://pokeapi.co/api/v2/version/15/"
} }
}] }]
}], }],
"location_area_encounters": "/api/v2/pokemon/35/encounters",
"moves": [{ "moves": [{
"move": { "move": {
"name": "flash", "name": "pound",
"url": "http://pokeapi.co/api/v2/move/148/" "url": "http://localhost:8000/api/v2/move/1/"
}, },
"version_group_details": [{ "version_group_details": [{
"level_learned_at": 0, "level_learned_at": 1,
"version_group": { "version_group": {
"name": "x-y", "name": "red-blue",
"url": "http://pokeapi.co/api/v2/version-group/15/" "url": "http://localhost:8000/api/v2/version-group/1/"
}, },
"move_learn_method": { "move_learn_method": {
"name": "machine", "name": "level-up",
"url": "http://pokeapi.co/api/v2/move-learn-method/4/" "url": "http://localhost:8000/api/v2/move-learn-method/1/"
} }
}] }]
}], }],
"species": { "species": {
"name": "butterfree", "name": "clefairy",
"url": "http://pokeapi.co/api/v2/pokemon-species/12/" "url": "http://localhost:8000/api/v2/pokemon-species/35/"
}, },
"stats": [{ "stats": [{
"base_stat": 70, "base_stat": 35,
"effort": 0, "effort": 0,
"stat": { "stat": {
"name": "speed", "name": "speed",
"url": "http://pokeapi.co/api/v2/stat/6/" "url": "http://localhost:8000/api/v2/stat/6/"
} }
}], }],
"types": [{ "types": [{
"slot": 2, "slot": 1,
"type": { "type": {
"name": "flying", "name": "fairy",
"url": "http://pokeapi.co/api/v2/type/3/" "url": "http://localhost:8000/api/v2/type/18/"
} }
}],
"past_types": [{
"generation": {
"name": "generation-v",
"url": "http://localhost:8000/api/v2/generation/5/"
},
"types": [
{
"slot": 1,
"type": {
"name": "normal",
"url": "http://localhost:8000/api/v2/type/1/"
}
}
]
}] }]
} }
``` ```
@ -2392,6 +2382,7 @@ Pokémon are the creatures that inhabit the world of the pokemon games. They can
| species | The species this pokémon belongs to | [NamedAPIResource](#namedapiresource) ([PokemonSpecies](#pokemon-species)) | | species | The species this pokémon belongs to | [NamedAPIResource](#namedapiresource) ([PokemonSpecies](#pokemon-species)) |
| stats | A list of base stat values for this pokémon | list [NamedAPIResource](#namedapiresource) ([Stat](#stats)) | | stats | A list of base stat values for this pokémon | list [NamedAPIResource](#namedapiresource) ([Stat](#stats)) |
| types | A list of details showing types this pokémon has | list [PokemonType](#pokemontype) | | types | A list of details showing types this pokémon has | list [PokemonType](#pokemontype) |
| past_types | A list of details showing types this pokémon had in previous generations | list [PokemonTypePast](#pokemontypepast) |
#### PokemonAbility #### PokemonAbility
@ -2408,6 +2399,13 @@ Pokémon are the creatures that inhabit the world of the pokemon games. They can
| slot | The order the pokémon types are listed in | integer | | slot | The order the pokémon types are listed in | integer |
| type | The type the referenced pokémon has | string | | type | The type the referenced pokémon has | string |
#### PokemonTypePast
| Name | Description | Data Type |
| ---- | ----------- | --------- |
| generation | The last generation in which the referenced pokémon had the listed types | [NamedAPIResource](#namedapiresource) ([Generation](#generations)) |
| types | The types the referenced pokémon had up to and including the listed generation | list [PokemonType](#pokemontype) |
#### LocationAreaEncounter #### LocationAreaEncounter
| Name | Description | Data Type | | Name | Description | Data Type |