ハリーポッターGPT
ハリーポッターGPT · GPT-Aktionen
Harry Potter API
API for accessing information about Harry Potter characters and spells.
GET /api/charactersgetAllCharactersGet information about all Harry Potter characters
GET /api/character/{characterId}getCharacterByIdGet information about a specific character by their unique ID
GET /api/characters/studentsgetHogwartsStudentsGet information about characters who are Hogwarts students
GET /api/characters/staffgetHogwartsStaffGet information about characters who are Hogwarts staff
GET /api/characters/house/{houseName}getCharactersByHouseGet information about characters in a specific Hogwarts house
GET /api/spellsgetAllSpellsGet information about all spells in Harry Potter
Ursprüngliches API-Schema
{
"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"
}
}
}
}
}
}