Learning Objects API

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

Show a submission

GET /v1/learning_objects/submissions/:id

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: 2Iuo_7q0vn4gu9WtAJCoEw
Client: Fle4xr-SCnXYufQZVkbftQ
Uid: alvera_mraz@howe.co
Host: example.org
Cookie: 

Route

GET /v1/learning_objects/submissions/823

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/submissions/823" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: 2Iuo_7q0vn4gu9WtAJCoEw" \
	-H "Client: Fle4xr-SCnXYufQZVkbftQ" \
	-H "Uid: alvera_mraz@howe.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=TDFWMjhYanIrbzN2blhDcVM1YU1nTXVuUFNrTmVKL3FJVjBzQU9iSXBEdHBvZ3pJRzBHTTk1ODlHRHhnUTVkSEtUSFc1bnNZSEFqa1VRQUJQRmY0ems2N2hEY09MSHZEeVB0UkducGtDUXk1QVlWbDFXd1lDcWEvbk5NYXQ0cjN6YjQ0MmV4ZUpKWnlneElBQW5RTXV5SGVnM1A2d1IvRkFheUFsQjNzaVhxL2pkQTJPcGx1SDkvbmVWNEYzak1VLS1lTFlJS0krS2gwN21BZ1E1di96dWRRPT0%3D--fc1fc6b0ff6e1839fe43bfbbdba6680f04c416b5; path=/; HttpOnly
Vary: Origin
ETag: W/"7f3273101c5b0bbcbff736f5e7f4155a"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 836db3bb-1771-4167-bde2-8835e2f15819
X-Runtime: 0.164350
Content-Length: 2498

Status

200 OK

Body

{
  "id": 823,
  "name": "LearningObject 822",
  "description": "Eveniet ullam non expedita quis occaecati quos repellat. Veniam sequi aspernatur assumenda commodi repellat praesentium qui. Voluptas sunt non rerum excepturi est reprehenderit non.",
  "author": "Thomas Saraiva",
  "curator": null,
  "thumbnail": null,
  "object_type": "Vídeo",
  "language": {
    "id": 10,
    "name": "Outro",
    "created_at": "2019-03-08T13:42:17.297Z",
    "updated_at": "2019-03-08T13:42:17.297Z",
    "code": "Outro"
  },
  "default_attachment_location": null,
  "default_attachment_id": null,
  "default_mime_type": null,
  "score": 0.920989840190664,
  "state": "submitted",
  "review_average": 0.0,
  "link": null,
  "software": null,
  "license": null,
  "liked": false,
  "likes_count": 0,
  "downloads_count": 0,
  "views_count": 0,
  "reviewed": false,
  "complained": false,
  "shares_count": 0,
  "created_at": "2019-03-08T13:47:44.303Z",
  "published_at": null,
  "terms_of_service": null,
  "updated_at": "2019-03-08T13:47:44.586Z",
  "magnetlink": null,
  "publisher": {
    "id": 7446,
    "email": null,
    "provider": "email",
    "cpf": null,
    "name": "Vitória Pires",
    "description": "Sit at repellat consequatur.",
    "submitter_request": "default",
    "education": "Non minus exercitationem voluptatem nobis perferendis magni omnis.",
    "score": 0.0,
    "cover": "",
    "role_ids": [
      1
    ],
    "institution_ids": [

    ],
    "avatar": "",
    "dspace_url": null,
    "dspace_handle": null,
    "dspace_sets": null,
    "likes_count": 0,
    "followed": false,
    "complained": false,
    "follows_count": 0,
    "learning_objects_count": 0,
    "collections_count": 0,
    "created_at": "2019-03-08T13:47:44.286Z",
    "updated_at": "2019-03-08T13:47:44.286Z",
    "terms_accepted_at": null
  },
  "tags": [
    {
      "id": 4732,
      "name": "Tag 4731",
      "created_at": "2019-03-08T13:47:44.313Z",
      "updated_at": "2019-03-08T13:47:44.313Z"
    },
    {
      "id": 4733,
      "name": "Tag 4732",
      "created_at": "2019-03-08T13:47:44.343Z",
      "updated_at": "2019-03-08T13:47:44.343Z"
    },
    {
      "id": 4734,
      "name": "Tag 4733",
      "created_at": "2019-03-08T13:47:44.372Z",
      "updated_at": "2019-03-08T13:47:44.372Z"
    },
    {
      "id": 4735,
      "name": "Tag 4734",
      "created_at": "2019-03-08T13:47:44.404Z",
      "updated_at": "2019-03-08T13:47:44.404Z"
    },
    {
      "id": 4736,
      "name": "Tag 4735",
      "created_at": "2019-03-08T13:47:44.444Z",
      "updated_at": "2019-03-08T13:47:44.444Z"
    }
  ],
  "subjects": [
    {
      "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
    },
    {
      "id": 20,
      "name": "Educação Ambiental",
      "created_at": "2019-03-08T13:42:18.136Z",
      "updated_at": "2019-03-08T13:42:18.136Z",
      "theme": true
    }
  ],
  "educational_stages": [
    {
      "id": 5,
      "name": "Ensino Superior",
      "created_at": "2019-03-08T13:42:18.196Z",
      "updated_at": "2019-03-08T13:42:18.196Z"
    }
  ],
  "attachments": [

  ]
}