POST /api/learn
answer a test and learn contents

Params

Param name Description
test_id
required

Validations:

  • Must be a Integer

answers
required

needs to be a JSON-encoded string having the following format:

[
  { "content_id": "2", "answer_id": "3" },
  { "content_id": "5", "answer_id": "8" },
  { "content_id": "9", "answer_id": "12" },
  { "content_id": "3", "answer_id": "15" }
]

Validations:

  • Must be a String