Learning Objects API

Learning objects are educational contents (movie, odf, file, sound, etc) which an user can show, create, update and destroy.

Getting all learning_object versions

GET /v1/learning_objects/:id/versions

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: xlxrv36Eu52yN6ROg0NnoQ
Client: kpo6CfCJWcv3NZjDMD2xVQ
Uid: elenor.roberts@roberts.co
Host: example.org
Cookie: 

Route

GET /v1/learning_objects/759/versions

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/759/versions" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: xlxrv36Eu52yN6ROg0NnoQ" \
	-H "Client: kpo6CfCJWcv3NZjDMD2xVQ" \
	-H "Uid: elenor.roberts@roberts.co"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
Set-Cookie: _session_id=eVUvWVpoa004WGIrK0srTkMwSng3cklJZ2xidzNPbTkyZFl0Y0hzNXhKSzBtUFVDWTFCSk9TOGZwVFc4YlBxTDhMM2Y5Y0ZFSVo5eEdXSHZQY3NQUE1LOVhiVEJNUzV3ZFFhRnpvWnBXYVU0SGtSR1pVQi9jTEdBTXFlc2Y2a2h6OWdBRW9QamFMN2NQMUFGMUkxRU1RdDN0Q1lEcElrSFQzWno0SUM4cVE0VXVUcUZ5STYzTmE1My9FWlVOSzMzLS1uUXM1ZCtHRnZ6bGNVSUxLR2lXajhnPT0%3D--9c1f3eff516c34b0659b53841e2b9a8c622ca5d5; path=/; HttpOnly
Vary: Origin
ETag: W/"51bf05c041062f1786f06bc1321dce9c"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 456ca6f6-fb19-46a2-97d5-f1ebc153bc6f
X-Runtime: 0.116654
Content-Length: 3191

Status

200 OK

Body

[
  {
    "id": 9503,
    "item": {
      "id": 759,
      "id_dspace": 758,
      "name": "Srta. Ofélia Lima",
      "author": "Aline Nunes",
      "description": "Odio ut accusantium in esse quibusdam totam voluptatem. Nesciunt debitis consequuntur aut. Facilis maiores dolor dignissimos ipsam placeat. Quas repudiandae et et ut consequuntur ut. Mollitia veritatis aut vitae incidunt doloremque ratione.",
      "published_at": null,
      "score": 0.747056502726386,
      "metadata": [

      ],
      "publisher_type": "User",
      "publisher_id": 6932,
      "language_id": 9,
      "object_type_id": 2,
      "created_at": "2019-03-08T13:47:20.634Z",
      "updated_at": "2019-03-08T13:47:20.923Z",
      "views_count": 0,
      "downloads_count": 0,
      "likes_count": 0,
      "shares_count": 0,
      "thumbnail_file_name": null,
      "thumbnail_content_type": null,
      "thumbnail_file_size": null,
      "thumbnail_updated_at": null,
      "attachment_id": null,
      "deleted_at": null,
      "license_id": null,
      "state": "published",
      "link": null,
      "software": null,
      "review_average": 0.0,
      "curator": null,
      "magnetlink": null,
      "terms_of_service": null
    },
    "event": "create",
    "whodunnit": null,
    "created_at": "2019-03-08T13:47:20.634Z",
    "object": {
      "id": 9503,
      "item_type": "LearningObject",
      "item_id": 759,
      "event": "create",
      "whodunnit": null,
      "object": null,
      "created_at": "2019-03-08T13:47:20.634Z"
    }
  },
  {
    "id": 9513,
    "item": {
      "id": 759,
      "id_dspace": 758,
      "name": "Srta. Ofélia Lima",
      "author": "Aline Nunes",
      "description": "Odio ut accusantium in esse quibusdam totam voluptatem. Nesciunt debitis consequuntur aut. Facilis maiores dolor dignissimos ipsam placeat. Quas repudiandae et et ut consequuntur ut. Mollitia veritatis aut vitae incidunt doloremque ratione.",
      "published_at": null,
      "score": 0.747056502726386,
      "metadata": [

      ],
      "publisher_type": "User",
      "publisher_id": 6932,
      "language_id": 9,
      "object_type_id": 2,
      "created_at": "2019-03-08T13:47:20.634Z",
      "updated_at": "2019-03-08T13:47:20.923Z",
      "views_count": 0,
      "downloads_count": 0,
      "likes_count": 0,
      "shares_count": 0,
      "thumbnail_file_name": null,
      "thumbnail_content_type": null,
      "thumbnail_file_size": null,
      "thumbnail_updated_at": null,
      "attachment_id": null,
      "deleted_at": null,
      "license_id": null,
      "state": "published",
      "link": null,
      "software": null,
      "review_average": 0.0,
      "curator": null,
      "magnetlink": null,
      "terms_of_service": null
    },
    "event": "update",
    "whodunnit": null,
    "created_at": "2019-03-08T13:47:20.923Z",
    "object": {
      "id": 9513,
      "item_type": "LearningObject",
      "item_id": 759,
      "event": "update",
      "whodunnit": null,
      "object": "---\nid: 759\nid_dspace: 758\nname: LearningObject 758\nauthor: Aline Nunes\ndescription: Odio ut accusantium in esse quibusdam totam voluptatem. Nesciunt debitis\n  consequuntur aut. Facilis maiores dolor dignissimos ipsam placeat. Quas repudiandae\n  et et ut consequuntur ut. Mollitia veritatis aut vitae incidunt doloremque ratione.\npublished_at: \nscore: 0.7470565027263861\nmetadata: \npublisher_type: User\npublisher_id: 6932\nlanguage_id: 9\nobject_type_id: 2\ncreated_at: 2019-03-08 13:47:20.634088370 Z\nupdated_at: 2019-03-08 13:47:20.634088370 Z\nviews_count: 0\ndownloads_count: 0\nlikes_count: 0\nshares_count: 0\nthumbnail_file_name: \nthumbnail_content_type: \nthumbnail_file_size: \nthumbnail_updated_at: \nattachment_id: \ndeleted_at: \nlicense_id: \nstate: 1\nlink: \nsoftware: \nreview_average: 0.0\ncurator: \nmagnetlink: \nterms_of_service: \n",
      "created_at": "2019-03-08T13:47:20.923Z"
    }
  }
]