ハリーポッターGPT

ハリーポッターGPT · GPT アクション

Harry Potter API

API for accessing information about Harry Potter characters and spells.

  • GET /api/charactersgetAllCharacters

    Get information about all Harry Potter characters

  • GET /api/character/{characterId}getCharacterById

    Get information about a specific character by their unique ID

  • GET /api/characters/studentsgetHogwartsStudents

    Get information about characters who are Hogwarts students

  • GET /api/characters/staffgetHogwartsStaff

    Get information about characters who are Hogwarts staff

  • GET /api/characters/house/{houseName}getCharactersByHouse

    Get information about characters in a specific Hogwarts house

  • GET /api/spellsgetAllSpells

    Get information about all spells in Harry Potter

元の API スキーマ
{
  "openapi": "3.0.0",
  "info": {
    "title": "Harry Potter API",
    "description": "API for accessing information about Harry Potter characters and spells.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://hp-api.onrender.com"
    }
  ],
  "paths": {
    "/api/characters": {
      "get": {
        "operationId": "getAllCharacters",
        "description": "Get information about all Harry Potter characters",
        "responses": {
          "200": {
            "description": "A list of all characters"
          }
        }
      }
    },
    "/api/character/{characterId}": {
      "get": {
        "operationId": "getCharacterById",
        "description": "Get information about a specific character by their unique ID",
        "parameters": [
          {
            "name": "characterId",
            "in": "path",
            "required": true,
            "description": "Unique ID of the character",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Details of a specific character"
          }
        }
      }
    },
    "/api/characters/students": {
      "get": {
        "operationId": "getHogwartsStudents",
        "description": "Get information about characters who are Hogwarts students",
        "responses": {
          "200": {
            "description": "A list of Hogwarts students"
          }
        }
      }
    },
    "/api/characters/staff": {
      "get": {
        "operationId": "getHogwartsStaff",
        "description": "Get information about characters who are Hogwarts staff",
        "responses": {
          "200": {
            "description": "A list of Hogwarts staff"
          }
        }
      }
    },
    "/api/characters/house/{houseName}": {
      "get": {
        "operationId": "getCharactersByHouse",
        "description": "Get information about characters in a specific Hogwarts house",
        "parameters": [
          {
            "name": "houseName",
            "in": "path",
            "required": true,
            "description": "Name of the Hogwarts house",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of characters in the specified house"
          }
        }
      }
    },
    "/api/spells": {
      "get": {
        "operationId": "getAllSpells",
        "description": "Get information about all spells in Harry Potter",
        "responses": {
          "200": {
            "description": "A list of all spells"
          }
        }
      }
    }
  }
}