Chat bot api - SG-Finder/auth_server GitHub Wiki

Chatbot API

Chatbot

Request

  • endpoint: GET /api/genie_answer
  • parameters
Key Value Type Essential
user_message what did you do today? string true
history ["what did you do today?", ... , ] string array(5) optional

Response

Success

  • status code: 200
Key Value Type Essential
genie_message I did programming string true
emotion {0(positive), 1(neutral), 2(negative)} int optional

Fail

Key Value Type
status_code 400 int
message bad request string

Fail cases(will be added)

  • 400: BAD_REQUEST

Change weapons or execute orders

Request

  • endpoint: GET /api/genie_action
  • parameters
Key Value Type Essential
order Genie, please change the weapon string true

Response

Success (will be changed)

  • status code: 200
Key Value Type Essential
order_response *(Tentative) *(Tentative) true

Fail

Key Value Type
status_code 400 int
message bad request string

Fail cases(will be added)

  • 400: BAD_REQUEST

Search strategies

Request

  • endpoint: GET /api/genie_search
  • parameters
Key Value Type Essential
search_order Genie, please search how to pass this stage string true

Response

Success (will be changed)

  • status code: 200
Key Value Type Essential
search_order_response *(Tentative) string true

Fail

Key Value Type
status_code 400 int
message bad request string

Fail cases(will be added)

  • 400: BAD_REQUEST

.