POST /api/notifications/:id/read_notifications
To deleted a notification of a user.

Parámetros

Nombre del parámetro Descripción
id
requerido

Value:

Must be Integer

data_type
opcional

Value:

Must be String


GET /api/notifications
get new notifications for current user

Ejemplos

"notifications": [
  {
    "id": 14,
    "title": "Notification 1",
    "description": "Consequatur nesciunt neque accusamus ipsum consectetur",
    "user_id": 1,
    "videos": [
      "https://www.youtube.com/watch?v=JFOQc3tOT98"
    ],
    "media": [
      "1501675636-nature-q-c-640-480-2.jpg"
    ],
    "type": "generic",
    "created_at": "2017-08-02T07:07:14.351-05:00"
  },
  {
    "id": 13,
    "title": "Notification 2",
    "description": "Consequatur nesciunt neque accusamus ipsum consectetur",
    "user_id": 1,
    "videos": [
      "https://www.youtube.com/watch?v=JFOQc3tOT98"
    ],
    "media": [
      "1501621362-nature-q-c-640-480-2.jpg"
    ],
    "type": "generic",
    "created_at": "2017-08-01T16:02:41.576-05:00"
  },
  {
    "id": 1,
    "status": null,
    "tutor": {
      "id": 4,
      "email": "tutor1@test.com",
      "created_at": "2017-08-01T15:59:41.764-05:00",
      "updated_at": "2017-08-01T16:00:22.912-05:00",
      "name": "tutor1",
      "role": "tutor",
      "uid": "tutor1@test.com",
      "provider": "email",
      "birthday": null,
      "city": null,
      "country": null,
      "tree_image": {
        "url": null
      },
      "school": null
    },
    "type": "request",
    "created_at": "2017-08-01T16:00:33.895-05:00"
  }
],
"meta": {
  "total_count": 11,
  "total_pages": 4
}
    

GET /api/notifications/details
Get total counter tasks

Ejemplos

{
  "notifications": 10,
  "recommendations": 7,
  "events": 4
}
    

GET /api/notifications/:id/open

Parámetros

Nombre del parámetro Descripción
id
requerido

Value:

Must be Integer

type
requerido

Value:

Must be String

tutor_id
requerido

Value:

Must be String