DnDGPT
DnDGPT · GPT-Aktionen
Dračí doupě API
Vrací náhodné události během různých akcí, postavy, questy,oznameni
GET /cestovanigetCestovaniVrací náhodné události během cestování
GET /schopnostgetSchopnostVypočítá šanci na úspěch použití schopnosti
GET /kralovske_oznamenigetKralovskeOznameniVrací královské oznamení
GET /protivnik_utokgetSoubojProvádí simulaci souboje
GET /stestigetStestiVypočítá štěstí
GET /setkanigetSetkaniGeneruje výsledek setkání s postavou
GET /get_postava_info/{id}getPostavaInfoZískává informace o postavě na základě jejího ID
Ursprüngliches API-Schema
{
"openapi": "3.1.0",
"info": {
"title": "Dračí doupě API",
"description": "Vrací náhodné události během různých akcí, postavy, questy,oznameni",
"version": "v0.0.4"
},
"servers": [
{
"url": "https://dracakgpt.cz/"
}
],
"paths": {
"/cestovani": {
"get": {
"description": "Vrací náhodné události během cestování",
"operationId": "getCestovani",
"responses": {
"200": {
"description": "Úspěšná odpověď",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"setkani_s_postavou": {
"type": "boolean"
},
"neocekavana_udalost_pri_cestovani": {
"type": "boolean"
},
"nova_pravidla_v_kralovstvi": {
"type": "boolean"
}
}
}
}
}
}
}
}
},
"/schopnost": {
"get": {
"description": "Vypočítá šanci na úspěch použití schopnosti",
"operationId": "getSchopnost",
"responses": {
"200": {
"description": "Úspěšná odpověď",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"sance_na_uspech": {
"type": "boolean"
}
}
}
}
}
}
}
}
},
"/kralovske_oznameni": {
"get": {
"description": "Vrací královské oznamení",
"operationId": "getKralovskeOznameni",
"responses": {
"200": {
"description": "Úspěšná odpověď",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"nazev": {
"type": "string"
},
"kralovstvi": {
"description": "Ve kterém kralovství je to vyhlašeno",
"type": "string"
},
"obsah": {
"description": "Text vyhlašky",
"type": "string"
},
"dulezitost": {
"type": "string"
}
}
}
}
}
}
}
}
},
"/protivnik_utok": {
"get": {
"description": "Provádí simulaci souboje",
"operationId": "getSouboj",
"responses": {
"200": {
"description": "Úspěšná odpověď",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"utok": {
"type": "boolean"
},
"obrana": {
"type": "boolean"
},
"kryticky_zasah": {
"type": "boolean"
}
}
}
}
}
}
}
}
},
"/stesti": {
"get": {
"description": "Vypočítá štěstí",
"operationId": "getStesti",
"responses": {
"200": {
"description": "Úspěšná odpověď",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"stesti": {
"type": "string",
"enum": [
"extra velke",
"velke",
"stredni",
"male",
"mizerne",
"zadne"
]
}
}
}
}
}
}
}
}
},
"/setkani": {
"get": {
"description": "Generuje výsledek setkání s postavou",
"operationId": "getSetkani",
"responses": {
"200": {
"description": "Úspěšná odpověď",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"postava": {
"type": "object",
"properties": {
"je_znama": {
"type": "boolean"
},
"typ_setkani": {
"type": "string",
"enum": [
"pozitivni",
"negativni"
]
},
"id_postavy": {
"type": "integer"
},
"jmeno": {
"type": "string"
},
"vzhled": {
"type": "string"
},
"avatar": {
"description": "Použí ",
"type": "string"
},
"pohlavi": {
"type": "string"
},
"vek": {
"type": "integer"
},
"povolani": {
"type": "string"
},
"postaveni_ve_spolecnosti": {
"type": "string"
},
"charakter": {
"type": "string"
},
"utok": {
"type": "boolean"
},
"krades": {
"type": "boolean"
},
"pouziti_nekale_nebo_zakazane_magie": {
"type": "boolean"
}
}
}
}
}
}
}
}
}
}
},
"/get_postava_info/{id}": {
"get": {
"description": "Získává informace o postavě na základě jejího ID",
"operationId": "getPostavaInfo",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"description": "ID postavy",
"schema": {
"type": "integer"
}
},
{
"name": "jmeno",
"in": "query",
"required": false,
"description": "vrátí jméno postavy",
"schema": {
"type": "boolean"
}
},
{
"name": "vek",
"in": "query",
"required": false,
"description": "vrátí věk postavy",
"schema": {
"type": "boolean"
}
},
{
"name": "vzhled",
"in": "query",
"required": false,
"description": "vrátí popis vzhledu postavy",
"schema": {
"type": "boolean"
}
},
{
"name": "avatar",
"in": "query",
"required": false,
"description": "url adresa avatara",
"schema": {
"type": "boolean"
}
},
{
"name": "pohlavi",
"in": "query",
"required": false,
"description": "vrátí pohlaví postavy",
"schema": {
"type": "boolean"
}
},
{
"name": "povolani",
"in": "query",
"required": false,
"description": "vrátí povolani postavy",
"schema": {
"type": "boolean"
}
},
{
"name": "postaveni_ve_spolecnosti",
"in": "query",
"required": false,
"description": "vrátí postaveni ve společnosti postavy",
"schema": {
"type": "boolean"
}
},
{
"name": "dovednosti",
"in": "query",
"required": false,
"description": "vrátí Dovednosti postavy",
"schema": {
"type": "boolean"
}
},
{
"name": "charakter",
"in": "query",
"required": false,
"description": "vrátí Charakter postavy",
"schema": {
"type": "boolean"
}
},
{
"name": "sila",
"in": "query",
"required": false,
"description": "vrátí síla postavy",
"schema": {
"type": "integer"
}
},
{
"name": "inteligence",
"in": "query",
"required": false,
"description": "vrátí inteligence postavy",
"schema": {
"type": "integer"
}
},
{
"name": "obratnost",
"in": "query",
"required": false,
"description": "vrátí obratnost postavy",
"schema": {
"type": "integer"
}
},
{
"name": "charisma",
"in": "query",
"required": false,
"description": "vrátí Charisma postavy",
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "Úspěšná odpověď s detaily postavy",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"Jmeno": {
"type": "string"
},
"Vzhled": {
"type": "string"
},
"Avatar": {
"description": "Použí ",
"type": "string"
},
"Pohlavi": {
"type": "string"
},
"Vek": {
"type": "integer"
},
"Povolani": {
"type": "string"
},
"Postaveni_ve_spolecnosti": {
"type": "string"
},
"Dovednosti": {
"type": "string"
},
"Charakter": {
"type": "string"
},
"Sila": {
"type": "integer"
},
"Inteligence": {
"type": "integer"
},
"Obratnost": {
"type": "integer"
},
"Charisma": {
"type": "integer"
}
}
}
}
}
},
"404": {
"description": "Postava nenalezena"
}
}
}
}
},
"components": {
"schemas": {}
}
}