Update README Type model example response with Ghost type data

This commit is contained in:
Julian Lawrance 2021-02-13 22:43:26 +00:00
parent 55e280b149
commit eabd20988d

View file

@ -2850,96 +2850,130 @@ Types are properties for Pokémon and their moves. Each type has three propertie
"id": 8, "id": 8,
"name": "ghost", "name": "ghost",
"damage_relations": { "damage_relations": {
"no_damage_to": [{ "no_damage_to": [
{
"name": "normal", "name": "normal",
"url": "http://pokeapi.co/api/v2/type/1/" "url": "https://pokeapi.co/api/v2/type/1/"
}], }
"half_damage_to": [{ ],
"half_damage_to": [
{
"name": "dark", "name": "dark",
"url": "http://pokeapi.co/api/v2/type/17/" "url": "https://pokeapi.co/api/v2/type/17/"
}], }
"double_damage_to": [{ ],
"double_damage_to": [
{
"name": "ghost", "name": "ghost",
"url": "http://pokeapi.co/api/v2/type/8/" "url": "https://pokeapi.co/api/v2/type/8/"
}], }
"no_damage_from": [{ ],
"no_damage_from": [
{
"name": "normal", "name": "normal",
"url": "http://pokeapi.co/api/v2/type/1/" "url": "https://pokeapi.co/api/v2/type/1/"
}], }
"half_damage_from": [{ ],
"half_damage_from": [
{
"name": "poison", "name": "poison",
"url": "http://pokeapi.co/api/v2/type/4/" "url": "https://pokeapi.co/api/v2/type/4/"
}], }
"double_damage_from": [{ ],
"double_damage_from": [
{
"name": "ghost", "name": "ghost",
"url": "http://pokeapi.co/api/v2/type/8/" "url": "https://pokeapi.co/api/v2/type/8/"
}] }
]
}, },
"past_damage_relations": [{ "past_damage_relations": [
{
"generation": { "generation": {
"name": "generation-v", "name": "generation-v",
"url": "http://pokeapi.co/api/v2/generation/5/" "url": "https://pokeapi.co/api/v2/generation/5/"
}, },
"damage_relations": { "damage_relations": {
"no_damage_to": [{ "no_damage_to": [
{
"name": "normal", "name": "normal",
"url": "http://pokeapi.co/api/v2/type/1/" "url": "https://pokeapi.co/api/v2/type/1/"
}],
"half_damage_to": [{
"name": "steel",
"url": "http://pokeapi.co/api/v2/type/9/"
}],
"double_damage_to": [{
"name": "ghost",
"url": "http://pokeapi.co/api/v2/type/8/"
}],
"no_damage_from": [{
"name": "normal",
"url": "http://pokeapi.co/api/v2/type/1/"
}],
"half_damage_from": [{
"name": "poison",
"url": "http://pokeapi.co/api/v2/type/4/"
}],
"double_damage_from": [{
"name": "ghost",
"url": "http://pokeapi.co/api/v2/type/8/"
}]
} }
}], ],
"game_indices": [{ "half_damage_to": [
{
"name": "steel",
"url": "https://pokeapi.co/api/v2/type/9/"
}
],
"double_damage_to": [
{
"name": "ghost",
"url": "https://pokeapi.co/api/v2/type/8/"
}
],
"no_damage_from": [
{
"name": "normal",
"url": "https://pokeapi.co/api/v2/type/1/"
}
],
"half_damage_from": [
{
"name": "poison",
"url": "https://pokeapi.co/api/v2/type/4/"
}
],
"double_damage_from": [
{
"name": "ghost",
"url": "https://pokeapi.co/api/v2/type/8/"
}
]
}
}
],
"game_indices": [
{
"game_index": 8, "game_index": 8,
"generation": { "generation": {
"name": "generation-i", "name": "generation-i",
"url": "http://pokeapi.co/api/v2/generation/1/" "url": "https://pokeapi.co/api/v2/generation/1/"
} }
}], }
],
"generation": { "generation": {
"name": "generation-i", "name": "generation-i",
"url": "http://pokeapi.co/api/v2/generation/1/" "url": "https://pokeapi.co/api/v2/generation/1/"
}, },
"move_damage_class": { "move_damage_class": {
"name": "physical", "name": "physical",
"url": "http://pokeapi.co/api/v2/move-damage-class/2/" "url": "https://pokeapi.co/api/v2/move-damage-class/2/"
}, },
"names": [{ "names": [
{
"name": "ゴースト", "name": "ゴースト",
"language": { "language": {
"name": "ja-Hrkt", "name": "ja-Hrkt",
"url": "http://pokeapi.co/api/v2/language/1/" "url": "https://pokeapi.co/api/v2/language/1/"
} }
}], }
"pokemon": [{ ],
"pokemon": [
{
"slot": 1, "slot": 1,
"pokemon": { "pokemon": {
"name": "gastly", "name": "gastly",
"url": "http://pokeapi.co/api/v2/pokemon/92/" "url": "https://pokeapi.co/api/v2/pokemon/92/"
} }
}], }
"moves": [{ ],
"moves": [
{
"name": "night-shade", "name": "night-shade",
"url": "http://pokeapi.co/api/v2/move/101/" "url": "https://pokeapi.co/api/v2/move/101/"
}] }
]
} }
``` ```