Fakemon Maker
Fakemon Maker · GPT-Aktionen
PokeAPI
GET /type/{name}Get type details by name.Retrieve details of a Pokémon type, including a list of moves of that type.
GET /abilityList all AbilitiesGET /moveList all MovesGET /move/{id}Info for a specific moveGET /move/{name}Info for a specific move
Ursprüngliches API-Schema
{
"openapi": "3.0.0",
"info": {
"version": "2.0.0",
"title": "PokeAPI"
},
"servers": [
{
"url": "https://pokeapi.co/api/v2/"
}
],
"paths": {
"/type/{name}": {
"get": {
"tags": [
"Types"
],
"summary": "Get type details by name.",
"description": "Retrieve details of a Pokémon type, including a list of moves of that type.",
"operationId": "getTypeByName",
"produces": [
"application/json"
],
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"description": "The name of the move to retrieve",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"schema": {
"$ref": "#/definitions/Type"
}
}
}
}
},
"/ability": {
"get": {
"summary": "List all Abilities",
"operationId": "listAbilities",
"tags": [
"ability"
],
"parameters": [
{
"name": "limit",
"in": "query",
"description": "How many items to return on one page.",
"required": false,
"default": 20,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "offset",
"in": "query",
"description": "How many items to skip from the returned list.",
"required": false,
"default": 20,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "A paged array of moves",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NamedAPIResourceList"
}
}
}
},
"default": {
"description": "unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/move": {
"get": {
"summary": "List all Moves",
"operationId": "listMoves",
"tags": [
"moves"
],
"parameters": [
{
"name": "limit",
"in": "query",
"description": "How many items to return on one page.",
"required": false,
"default": 20,
"schema": {
"type": "integer",
"format": "int32"
}
},
{
"name": "offset",
"in": "query",
"description": "How many items to skip from the returned list.",
"required": false,
"default": 20,
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "A paged array of moves",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/NamedAPIResourceList"
}
}
}
},
"default": {
"description": "unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/move/{id}": {
"get": {
"summary": "Info for a specific move",
"operationId": "showMoveById",
"tags": [
"moves"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"description": "The id of the move to retrieve",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Expected response to a valid request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Move"
}
}
}
},
"default": {
"description": "unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
},
"/move/{name}": {
"get": {
"summary": "Info for a specific move",
"operationId": "showMoveByName",
"tags": [
"moves"
],
"parameters": [
{
"name": "name",
"in": "path",
"required": true,
"description": "The name of the move to retrieve",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Expected response to a valid request",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Move"
}
}
}
},
"default": {
"description": "unexpected error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"Type": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "The identifier for this resource."
},
"name": {
"type": "string",
"description": "The name for this resource."
},
"damage_relations": {
"type": "TypeRelations"
},
"past_damage_relations": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GenericObject"
}
},
"game_indices": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GenericObject"
}
},
"generation": {
"$ref": "#/components/schemas/NamedAPIResource"
},
"move_damage_class": {
"$ref": "#/components/schemas/NamedAPIResource"
},
"names": {
"type": "array",
"items": {
"$ref": "#/components/schemas/GenericObject"
}
},
"pokemon": {
"description": "List of Pokemon with this type.",
"type": "array",
"items": {
"$ref": "#/components/schemas/GenericObject"
}
},
"moves": {
"description": "List of moves with this type.",
"type": "array",
"items": {
"$ref": "#/components/schemas/NamedAPIResource"
}
}
}
},
"Move": {
"type": "object",
"properties": {
"id": {
"description": "The identifier for this resource.",
"type": "integer"
},
"name": {
"description": "The name for this resource.",
"type": "string"
},
"accuracy": {
"description": "The percent value of how likely this move is to be successful.",
"type": "integer"
},
"effect_chance": {
"description": "The percent value of how likely it is this move's effect will happen.",
"type": "integer"
},
"pp": {
"description": "Power points. The number of times this move can be used.",
"type": "integer"
},
"priority": {
"description": "A value between -8 and 8. Sets the order in which moves are executed during battle. See Bulbapedia for greater detail.",
"type": "integer"
},
"power": {
"description": "The base power of this move with a value of 0 if it does not have a base power.",
"type": "integer"
},
"contest_combos": {
"description": "A detail of normal and super contest combos that require this move.",
"type": "ContestComboSets"
},
"contest_type": {
"description": "The type of appeal this move gives a Pokémon when used in a contest.",
"type": "NamedAPIResource (ContestType)"
},
"contest_effect": {
"description": "The effect the move has when used in a contest.",
"type": "APIResource (ContestEffect)"
},
"damage_class": {
"description": "The type of damage the move inflicts on the target, e.g. physical.",
"type": "NamedAPIResource (MoveDamageClass)"
},
"effect_entries": {
"description": "The effect of this move listed in different languages.",
"type": "list VerboseEffect"
},
"effect_changes": {
"description": "The list of previous effects this move has had across version groups of the games.",
"type": "list AbilityEffectChange"
},
"learned_by_pokemon": {
"description": "List of Pokémon that can learn the move.",
"type": "list NamedAPIResource (Pokemon)"
},
"flavor_text_entries": {
"description": "The flavor text of this move listed in different languages.",
"type": "list MoveFlavorText"
},
"generation": {
"description": "The generation in which this move was introduced.",
"type": "NamedAPIResource (Generation)"
},
"machines": {
"description": "A list of the machines that teach this move.",
"type": "list MachineVersionDetail"
},
"meta": {
"description": "Metadata about this move.",
"type": "MoveMetaData"
},
"names": {
"description": "The name of this resource listed in different languages.",
"type": "list Name"
},
"past_values": {
"description": "A list of move resource value changes across version groups of the game.",
"type": "list PastMoveStatValues"
},
"stat_changes": {
"description": "A list of stats this move's effects and how much it affects them.",
"type": "list MoveStatChange"
},
"super_contest_effect": {
"description": "The effect the move has when used in a super contest.",
"type": "APIResource (SuperContestEffect)"
},
"target": {
"description": "The type of target that will receive the effects of the attack.",
"type": "NamedAPIResource (MoveTarget)"
},
"type": {
"description": "The elemental type of this move.",
"type": "NamedAPIResource (Type)"
}
}
},
"NamedAPIResource": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the referenced resource."
},
"url": {
"type": "string",
"description": "The URL of the referenced resource."
}
}
},
"NamedAPIResourceList": {
"type": "object",
"properties": {
"count": {
"type": "integer",
"description": "The total number of resources available from this API."
},
"next": {
"type": "string",
"description": "The URL for the next page in the list."
},
"previous": {
"type": "string",
"description": "The URL for the previous page in the list."
},
"results": {
"type": "list",
"items": {
"$ref": "#/components/schemas/NamedAPIResource"
},
"description": "A list of named API resources."
}
}
},
"GenericObject": {
"type": "object",
"description": "A generic object placeholder for complex structures.",
"properties": {
"dummy": {
"type": "string",
"description": "Example field to satisfy schema requirements."
}
}
},
"Error": {
"type": "object",
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
}
}
}
}
}