POST /api/neurons/:neuron_id/contents/:content_id/read
a user reads a content. response includes test if needed

If a test should be triggered, then the test is included as part of the response body. See an example

Ejemplos

// respuesta sin test
{
  "status":"created",
  "perform_test":false,
  "test":null
}
    
// respuesta con test
{
  "status":"created",
  "perform_test":true,
  "test": {
    "id": 1,
    "questions": [
      {
        "content_id":6,
        "title":"Content 6",
        "media_url": "some_url",
        "possible_answers":[
          {
            "id":7,
            "text":"Possible answer 7"
          },
          {
            "id":8,
            "text":"Possible answer 8"
          },
          {
            "id":9,
            "text":"Possible answer 9"
          }
        ]
      },
      {
        "content_id":7,
        "title":"Content 7",
        "media_url": null,
        "possible_answers":[
          {
            "id":10,
            "text":"Possible answer 10"
          },
          {
            "id":11,
            "text":"Possible answer 11"
          },
          {
            "id":12,
            "text":"Possible answer 12"
          }
        ]
      },
      {
        "content_id":8,
        "title":"Content 8",
        "media_url": "some_url",
        "possible_answers":[
          {
            "id":13,
            "text":"Possible answer 13"
          },
          {
            "id":14,
            "text":"Possible answer 14"
          },
          {
            "id":15,
            "text":"Possible answer 15"
          }
        ]
      },
      {
        "content_id":9,
        "title":"Content 9",
        "media_url": "some_url",
        "possible_answers":[
          {
            "id":16,
            "text":"Possible answer 16"
          },
          {
            "id":17,
            "text":"Possible answer 17"
          },
          {
            "id":18,
            "text":"Possible answer 18"
          }
        ]
      }
    ]
  }
}
    

Parámetros

Nombre del parámetro Descripción
neuron_id
requerido

Value:

Must be Integer

content_id
requerido

Value:

Must be Integer


POST /api/neurons/:neuron_id/contents/:content_id/notes
To store the notes a user takes of a content. IMPORTANT: If no notes are given then current notes are **deleted** from DB

Parámetros

Nombre del parámetro Descripción
neuron_id
requerido

Value:

Must be Integer

content_id
requerido

Value:

Must be Integer

notes
opcional

Value:

Must be String


POST /api/neurons/:neuron_id/contents/:content_id/media_open
Save a record when an image is opened.

Save a record when an image is opened.

Parámetros

Nombre del parámetro Descripción
neuron_id
requerido

Value:

Must be Integer

content_id
requerido

Value:

Must be Integer

media_url
requerido

Value:

Must be String


POST /api/neurons/:neuron_id/contents/:id/tasks
To store the tasks a user.

Parámetros

Nombre del parámetro Descripción
id
requerido

Value:

Must be Integer


POST /api/api/neurons/:neuron_id/contents/:id/task_update
update task's user

Parámetros

Nombre del parámetro Descripción
id
requerido

Value:

Must be Integer


GET /api/neurons/:neuron_id/contents/:id
shows content

Parámetros

Nombre del parámetro Descripción
id
requerido

Value:

Must be Integer


POST /api/neurons/:neuron_id/contents/:id/favorites
To store content favorites a user.

Parámetros

Nombre del parámetro Descripción
id
requerido

Value:

Must be Integer


POST /api/neurons/:neuron_id/contents/:id/reading_time
add reading time from a user to a specific content

Parámetros

Nombre del parámetro Descripción
id
requerido

Value:

Must be Integer

neuron_id
requerido

Value:

Must be Integer

time
requerido

Value:

Must be Float