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,
"name": "ghost",
"damage_relations": {
"no_damage_to": [{
"no_damage_to": [
{
"name": "normal",
"url": "http://pokeapi.co/api/v2/type/1/"
}],
"half_damage_to": [{
"url": "https://pokeapi.co/api/v2/type/1/"
}
],
"half_damage_to": [
{
"name": "dark",
"url": "http://pokeapi.co/api/v2/type/17/"
}],
"double_damage_to": [{
"url": "https://pokeapi.co/api/v2/type/17/"
}
],
"double_damage_to": [
{
"name": "ghost",
"url": "http://pokeapi.co/api/v2/type/8/"
}],
"no_damage_from": [{
"url": "https://pokeapi.co/api/v2/type/8/"
}
],
"no_damage_from": [
{
"name": "normal",
"url": "http://pokeapi.co/api/v2/type/1/"
}],
"half_damage_from": [{
"url": "https://pokeapi.co/api/v2/type/1/"
}
],
"half_damage_from": [
{
"name": "poison",
"url": "http://pokeapi.co/api/v2/type/4/"
}],
"double_damage_from": [{
"url": "https://pokeapi.co/api/v2/type/4/"
}
],
"double_damage_from": [
{
"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": {
"name": "generation-v",
"url": "http://pokeapi.co/api/v2/generation/5/"
"url": "https://pokeapi.co/api/v2/generation/5/"
},
"damage_relations": {
"no_damage_to": [{
"no_damage_to": [
{
"name": "normal",
"url": "http://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/"
}]
"url": "https://pokeapi.co/api/v2/type/1/"
}
}],
"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,
"generation": {
"name": "generation-i",
"url": "http://pokeapi.co/api/v2/generation/1/"
"url": "https://pokeapi.co/api/v2/generation/1/"
}
}],
}
],
"generation": {
"name": "generation-i",
"url": "http://pokeapi.co/api/v2/generation/1/"
"url": "https://pokeapi.co/api/v2/generation/1/"
},
"move_damage_class": {
"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": "ゴースト",
"language": {
"name": "ja-Hrkt",
"url": "http://pokeapi.co/api/v2/language/1/"
"url": "https://pokeapi.co/api/v2/language/1/"
}
}],
"pokemon": [{
}
],
"pokemon": [
{
"slot": 1,
"pokemon": {
"name": "gastly",
"url": "http://pokeapi.co/api/v2/pokemon/92/"
"url": "https://pokeapi.co/api/v2/pokemon/92/"
}
}],
"moves": [{
}
],
"moves": [
{
"name": "night-shade",
"url": "http://pokeapi.co/api/v2/move/101/"
}]
"url": "https://pokeapi.co/api/v2/move/101/"
}
]
}
```