Skip to content

wmcaeddy/apidoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

This is the server side API definition.
answertype
0: shortanswer -> "null"
1: shortanswer -> "true"/"false" //承認/否定
2: shortanswer -> "true"/"false" //正確/誤った
3: shortanswer -> "any string" //open end
4: // not in use

API Call: Generate Secret Code

Method: GET
Endpoint: /getcode
Response Body: JSON object

json

{
  "code": 1234567890123456
}

API Call: Melchior

Method: POST
Endpoint: /melchior
Request Body: JSON object

json

{ "secretcode": 1234567890123456, "question": "What is the answer?" }

Response Body: JSON object (Example)

json

{
  "secretCode": 1234567890123456,
  "answertype": 1,
  "shortanswer": "true",
  "longanswer": "I'm singing in the rain",
  "question": "What is the answer?"
}

API Call: Balthasa

Method: POST
Endpoint: /balthasa
Request Body: JSON object

json

{ "secretcode": 1234567890123456, "question": "What is the answer?" }

Response Body: JSON object (Example)

json

{
  "secretCode": 1234567890123456,
  "answertype": 1,
  "shortanswer": "true",
  "longanswer": "I'm singing in the rain",
  "question": "What is the answer?"
}

API Call: Casper

Method: POST
Endpoint: /casper
Request Body: JSON object

json

{ "secretcode": 1234567890123456, "question": "What is the answer?" }

Response Body: JSON object (Example)

json

{ "secretCode": 1234567890123456, "answertype": 1, "shortanswer": "true", "longanswer": "I'm singing in the rain", "question": "What is the answer?" }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published