Poké-Digi Crossover Guide

Poké-Digi Crossover Guide · GPT-Aktionen

PokeAPI

  • GET /ability/{param1}getAbility
  • GET /pokemon-color/{param1}getPokemonColor
  • GET /pokemon-form/{param1}getPokemonForm
  • GET /pokemon-shape/{param1}getPokemonShape
  • GET /pokemon-habitat/{param1}getPokemonHabitat
Ursprüngliches API-Schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "PokeAPI",
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://pokeapi.co/api/v2"
    }
  ],
  "paths": {
    "/ability/{param1}": {
      "get": {
        "operationId": "getAbility",
        "parameters": [
          {
            "name": "param1",
            "in": "path",
            "required": true,
            "description": "Eindeutiger Bezeichner oder Name der Fähigkeit",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ein detailliertes Objekt einer Pokémon-Fähigkeit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Ability"
                }
              }
            }
          }
        }
      }
    },
    "/pokemon-color/{param1}": {
      "get": {
        "operationId": "getPokemonColor",
        "parameters": [
          {
            "name": "param1",
            "in": "path",
            "required": true,
            "description": "Eindeutiger Bezeichner oder Name der Pokémon-Farbe",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ein detailliertes Objekt einer Pokémon-Farbe",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PokemonColor"
                }
              }
            }
          }
        }
      }
    },
    "/pokemon-form/{param1}": {
      "get": {
        "operationId": "getPokemonForm",
        "parameters": [
          {
            "name": "param1",
            "in": "path",
            "required": true,
            "description": "Eindeutiger Bezeichner oder Name der Pokémon-Form",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ein detailliertes Objekt einer Pokémon-Form",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PokemonForm"
                }
              }
            }
          }
        }
      }
    },
    "/pokemon-shape/{param1}": {
      "get": {
        "operationId": "getPokemonShape",
        "parameters": [
          {
            "name": "param1",
            "in": "path",
            "required": true,
            "description": "Eindeutiger Bezeichner oder Name der Pokémon-Form",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ein detailliertes Objekt einer Pokémon-Form",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PokemonShape"
                }
              }
            }
          }
        }
      }
    },
    "/pokemon-habitat/{param1}": {
      "get": {
        "operationId": "getPokemonHabitat",
        "parameters": [
          {
            "name": "param1",
            "in": "path",
            "required": true,
            "description": "Eindeutiger Bezeichner oder Name des Pokémon-Lebensraums",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Ein detailliertes Objekt eines Pokémon-Lebensraums",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PokemonHabitat"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Ability": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "is_main_series": {
            "type": "boolean"
          },
          "generation": {
            "$ref": "#/components/schemas/NamedAPIResource"
          },
          "names": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Name"
            }
          },
          "effect_entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VerboseEffect"
            }
          },
          "effect_changes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AbilityEffectChange"
            }
          },
          "flavor_text_entries": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AbilityFlavorText"
            }
          },
          "pokemon": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AbilityPokemon"
            }
          }
        }
      },
      "PokemonColor": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "names": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Name"
            }
          },
          "pokemon_species": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedAPIResource"
            }
          }
        }
      },
      "PokemonForm": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "is_battle_only": {
            "type": "boolean"
          },
          "is_mega": {
            "type": "boolean"
          },
          "form_order": {
            "type": "integer"
          },
          "is_default": {
            "type": "boolean"
          },
          "form_name": {
            "type": "string"
          },
          "pokemon": {
            "$ref": "#/components/schemas/NamedAPIResource"
          },
          "sprites": {
            "$ref": "#/components/schemas/PokemonFormSprites"
          },
          "version_group": {
            "$ref": "#/components/schemas/NamedAPIResource"
          }
        }
      },
      "PokemonShape": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "awesome_names": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AwesomeName"
            }
          },
          "pokemon_species": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedAPIResource"
            }
          }
        }
      },
      "PokemonHabitat": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "names": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Name"
            }
          },
          "pokemon_species": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/NamedAPIResource"
            }
          }
        }
      },
      "NamedAPIResource": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "Name": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "language": {
            "$ref": "#/components/schemas/NamedAPIResource"
          }
        }
      },
      "VerboseEffect": {
        "type": "object",
        "properties": {
          "effect": {
            "type": "string"
          },
          "short_effect": {
            "type": "string"
          },
          "language": {
            "$ref": "#/components/schemas/NamedAPIResource"
          }
        }
      },
      "PokemonFormSprites": {
        "type": "object",
        "properties": {
          "front_default": {
            "type": "string"
          },
          "front_shiny": {
            "type": "string"
          },
          "back_default": {
            "type": "string"
          },
          "back_shiny": {
            "type": "string"
          }
        }
      },
      "AwesomeName": {
        "type": "object",
        "properties": {
          "awesome_name": {
            "type": "string"
          },
          "language": {
            "$ref": "#/components/schemas/NamedAPIResource"
          }
        }
      }
    }
  }
}

Digimon API

  • GET /api/v1/digimon/{identifier}Get Digimon by ID or Name

    Returns a digimon and all its information based on either its ID or name.

Ursprüngliches API-Schema
{
  "openapi": "3.0.0",
  "info": {
    "title": "Digimon API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://digimon-api.com/"
    }
  ],
  "paths": {
    "/api/v1/digimon/{identifier}": {
      "get": {
        "operationId": "get",
        "summary": "Get Digimon by ID or Name",
        "description": "Returns a digimon and all its information based on either its ID or name.",
        "parameters": [
          {
            "in": "path",
            "name": "identifier",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The Digimon's ID or name."
          }
        ],
        "responses": {
          "200": {
            "description": "A Digimon object containing all information about the Digimon.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Digimon"
                }
              }
            }
          },
          "404": {
            "description": "Digimon not found."
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Digimon": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32",
            "description": "The unique identifier of the Digimon."
          },
          "name": {
            "type": "string",
            "description": "The name of the Digimon."
          },
          "xAntibody": {
            "type": "boolean",
            "description": "Indicates if the Digimon has the X-Antibody."
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Image"
            }
          },
          "levels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Level"
            }
          },
          "types": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Type"
            }
          },
          "attributes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Attribute"
            }
          },
          "fields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Field"
            }
          },
          "releaseDate": {
            "type": "string",
            "format": "date"
          },
          "descriptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Description"
            }
          },
          "skills": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Skill"
            }
          },
          "priorEvolutions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Evolution"
            }
          },
          "nextEvolutions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Evolution"
            }
          }
        }
      },
      "Image": {
        "type": "object",
        "properties": {
          "href": {
            "type": "string",
            "format": "uri"
          },
          "transparent": {
            "type": "boolean"
          }
        }
      }
    }
  }
}