Learning Objects API

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

Get a learning object

GET /v1/learning_objects/:id

Request

Headers

Accept: application/json
Content-Type: application/json
Host: example.org
Cookie: 

Route

GET /v1/learning_objects/685

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/685" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
Vary: Origin
ETag: W/"d1d3af09f024d677d4b3a1aeaa319201"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 6ff25209-7d45-435a-9eb0-9cab64b1b50b
X-Runtime: 0.073213
Content-Length: 2546

Status

200 OK

Body

{
  "id": 685,
  "name": "LearningObject 685",
  "description": "Dolorum eos doloremque maxime. Et beatae dolorem quia quasi ratione. Tempora aliquid voluptas non nesciunt placeat natus. Praesentium repudiandae ipsam consequatur qui. Praesentium quod voluptatem non.",
  "author": "Alícia Silveira Filho",
  "curator": null,
  "thumbnail": null,
  "object_type": "Áudio",
  "language": {
    "id": 8,
    "name": "Russo",
    "created_at": "2019-03-08T13:42:17.289Z",
    "updated_at": "2019-03-08T13:42:17.289Z",
    "code": "ru"
  },
  "default_attachment_location": null,
  "default_attachment_id": null,
  "default_mime_type": null,
  "score": 0.000851925771854667,
  "state": "published",
  "review_average": 0.0,
  "link": null,
  "software": null,
  "license": null,
  "liked": false,
  "likes_count": 0,
  "downloads_count": 0,
  "views_count": 1,
  "reviewed": false,
  "complained": false,
  "shares_count": 0,
  "created_at": "2019-03-08T13:46:52.061Z",
  "published_at": null,
  "terms_of_service": null,
  "updated_at": "2019-03-08T13:46:52.061Z",
  "magnetlink": null,
  "publisher": {
    "id": 6344,
    "email": null,
    "provider": "email",
    "cpf": null,
    "name": "Vitória Fogaça",
    "description": "Commodi voluptas impedit neque velit voluptatum tenetur totam.",
    "submitter_request": "default",
    "education": "Unde earum rerum ut quasi veniam optio explicabo asperiores.",
    "score": 0.0,
    "cover": "",
    "role_ids": [
      1
    ],
    "institution_ids": [

    ],
    "avatar": "",
    "dspace_url": null,
    "dspace_handle": null,
    "dspace_sets": null,
    "likes_count": 0,
    "followed": null,
    "complained": false,
    "follows_count": 0,
    "learning_objects_count": 1,
    "collections_count": 0,
    "created_at": "2019-03-08T13:46:52.044Z",
    "updated_at": "2019-03-08T13:46:52.044Z",
    "terms_accepted_at": null
  },
  "tags": [
    {
      "id": 4051,
      "name": "Tag 4050",
      "created_at": "2019-03-08T13:46:52.183Z",
      "updated_at": "2019-03-08T13:46:52.183Z"
    },
    {
      "id": 4050,
      "name": "Tag 4049",
      "created_at": "2019-03-08T13:46:52.155Z",
      "updated_at": "2019-03-08T13:46:52.155Z"
    },
    {
      "id": 4049,
      "name": "Tag 4048",
      "created_at": "2019-03-08T13:46:52.127Z",
      "updated_at": "2019-03-08T13:46:52.127Z"
    },
    {
      "id": 4048,
      "name": "Tag 4047",
      "created_at": "2019-03-08T13:46:52.099Z",
      "updated_at": "2019-03-08T13:46:52.099Z"
    },
    {
      "id": 4047,
      "name": "Tag 4046",
      "created_at": "2019-03-08T13:46:52.071Z",
      "updated_at": "2019-03-08T13:46:52.071Z"
    }
  ],
  "subjects": [
    {
      "id": 15,
      "name": "Matemática",
      "created_at": "2019-03-08T13:42:18.112Z",
      "updated_at": "2019-03-08T13:42:18.112Z",
      "theme": false
    },
    {
      "id": 7,
      "name": "Educação Física",
      "created_at": "2019-03-08T13:42:18.076Z",
      "updated_at": "2019-03-08T13:42:18.076Z",
      "theme": false
    }
  ],
  "educational_stages": [
    {
      "id": 5,
      "name": "Ensino Superior",
      "created_at": "2019-03-08T13:42:18.196Z",
      "updated_at": "2019-03-08T13:42:18.196Z"
    }
  ],
  "attachments": [

  ]
}