Open hellojunho opened 1 month ago
This issue is for the API in Custom Game.
API
Custom Game
Below is the API Statement, if you have any issues or questions, please let me know about it.
API Statement
{ "game_type_name":"health" }
{ "data": { "game_type_id": "afcc644d-ff29-4ea6-9224-43ff867982db", "game_type_name": "health", "game_info": { "allCardNum": 78, "selectCardNum": 3, "fanCardNum": 1 } } }
{ "game_type_id": "afcc644d-ff29-4ea6-9224-43ff867982db" }
{ "data": { "custom_game_id": "6e2259c3-8faf-4268-8be8-8ff41fefa293", "custom_game_primary_quest_from_server": "가장 고르고싶은 카드를 선택해주세요." } }
{ "custom_game_id": "6e2259c3-8faf-4268-8be8-8ff41fefa293", "custom_game_primary_quest_from_server": "가장 고르고싶은 카드를 선택해주세요.", "custom_game_primary_answer_from_user": "요즘 몸이 너무 안좋아. 앞으로 몸 상태가 어떻게 될까?" }
{ "data": { "task_id": "bc93c3ab-c34c-4ffb-80fa-33a4c1bbdaa4" } }
{ "custom_game_id": "6e2259c3-8faf-4268-8be8-8ff41fefa293" }
{ "data": { "success": "FINISHED" } }
{ "custom_game_id": "6e2259c3-8faf-4268-8be8-8ff41fefa293", "primary_select_card_id": "fed3926d-f346-414d-86c5-2a509a79818f", "secondary_select_card_id": "95a94cc4-a11b-4b34-b21e-58c1e9c3a39b", "tertiary_select_card_id": "8950a906-57a2-4471-8c7d-da10285236a3" }
{ "data": { "task_id": "d56c799c-05ac-4980-b238-a27f26d7f896" } }
{ "data": { "success": "STARTED" } }
{ "custom_game_id": "fe5ec6a1-1867-4595-9bfa-f837e9a6c69a" }
{ "data": { "answer": "~~~~~~" } }
In the Request in POST: custom-game/question/, "custom_game_primary_answer_from_user" is the client's input value.
Request
POST: custom-game/question/
"custom_game_primary_answer_from_user"
This is a simple flowchart of the game.
This issue is for the
API
inCustom Game
.Below is the
API Statement
, if you have any issues or questions, please let me know about it.POST: custom-game/rule/
Request
Response
POST: custom-game/start/
Request
Response
POST: custom-game/question/
Request
Response
POST: custom-game/status/
Request
Response
POST: custom-game/end/
Request
Response
POST: custom-game/status/
Request
Response
POST: game/answer/
Request
Response