Mystic Witch
Mystic Witch · GPT 작업
demo
GET /api/healthHealth CheckPOST /api/tarot/drawDrawdraw a few unique tarot cards
원본 API 스키마
{
"openapi": "3.1.0",
"servers": [
{
"url": "https://uat-gpts.socraticlab.com"
}
],
"info": {
"title": "demo",
"version": "0.1.0"
},
"paths": {
"/api/health": {
"get": {
"summary": "Health Check",
"operationId": "health_check_api_health_get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"type": "string",
"title": "Response Health Check Api Health Get"
}
}
}
}
}
}
},
"/api/tarot/draw": {
"post": {
"tags": [
"tarot"
],
"summary": "Draw",
"description": "draw a few unique tarot cards",
"operationId": "draw_api_tarot_draw_post",
"parameters": [],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/TarotInput"
}
}
}
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"HTTPValidationError": {
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationError"
},
"type": "array",
"title": "Detail"
}
},
"type": "object",
"title": "HTTPValidationError"
},
"TarotInput": {
"properties": {
"num": {
"type": "integer",
"title": "Num",
"description": "number of cards to be drawn"
},
"langcode": {
"type": "string",
"enum": [
"zh_cn",
"zh_tw",
"en"
],
"title": "Langcode",
"description": "language of the card, `zh_cn`, `zh_tw` or `en`"
}
},
"type": "object",
"required": [
"num",
"langcode"
],
"title": "TarotInput"
},
"ValidationError": {
"properties": {
"loc": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"type": "array",
"title": "Location"
},
"msg": {
"type": "string",
"title": "Message"
},
"type": {
"type": "string",
"title": "Error Type"
}
},
"type": "object",
"required": [
"loc",
"msg",
"type"
],
"title": "ValidationError"
}
}
}
}