Collections API

Collection is a group of educational content or another collection, which an user can show, create, update and destroy.

Get a collection

GET /v1/collections/:id

Request

Headers

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

Route

GET /v1/collections/26

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/collections/26" -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/"5ee5b3b62b6a5a5663fcf299350a919c"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: af188d09-4051-4302-bb7e-f6c166db8472
X-Runtime: 0.206338
Content-Length: 9541

Status

200 OK

Body

{
  "id": 26,
  "name": "West Silva University",
  "curator": null,
  "created_at": "2019-03-08T13:43:29.728Z",
  "updated_at": "2019-03-08T13:43:29.728Z",
  "description": "Suscipit dolorem aliquid consequatur esse.",
  "privacy": "public",
  "score": 0.0,
  "likes_count": 0,
  "liked": false,
  "followed": null,
  "reviewed": false,
  "complained": false,
  "review_average": 0.0,
  "thumbnail": "",
  "items_thumbnails": [

  ],
  "owner": {
    "id": 1682,
    "email": null,
    "provider": "email",
    "cpf": null,
    "name": "Sophia Ferreira",
    "description": "Sunt et quia est.",
    "submitter_request": "default",
    "education": "Nihil explicabo in iure pariatur eius ea dolor.",
    "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": 0,
    "collections_count": 1,
    "created_at": "2019-03-08T13:43:29.702Z",
    "updated_at": "2019-03-08T13:43:29.702Z",
    "terms_accepted_at": null
  },
  "tags": [
    {
      "id": 1051,
      "name": "Tag 1050",
      "created_at": "2019-03-08T13:43:29.919Z",
      "updated_at": "2019-03-08T13:43:29.919Z"
    },
    {
      "id": 1050,
      "name": "Tag 1049",
      "created_at": "2019-03-08T13:43:29.869Z",
      "updated_at": "2019-03-08T13:43:29.869Z"
    },
    {
      "id": 1049,
      "name": "Tag 1048",
      "created_at": "2019-03-08T13:43:29.823Z",
      "updated_at": "2019-03-08T13:43:29.823Z"
    },
    {
      "id": 1048,
      "name": "Tag 1047",
      "created_at": "2019-03-08T13:43:29.786Z",
      "updated_at": "2019-03-08T13:43:29.786Z"
    },
    {
      "id": 1047,
      "name": "Tag 1046",
      "created_at": "2019-03-08T13:43:29.744Z",
      "updated_at": "2019-03-08T13:43:29.744Z"
    }
  ],
  "subjects": [
    {
      "id": 4,
      "name": "Arte",
      "created_at": "2019-03-08T13:42:18.061Z",
      "updated_at": "2019-03-08T13:42:18.061Z",
      "theme": false
    },
    {
      "id": 25,
      "name": "Educação Sexual",
      "created_at": "2019-03-08T13:42:18.158Z",
      "updated_at": "2019-03-08T13:42:18.158Z",
      "theme": true
    }
  ],
  "educational_stages": [
    {
      "id": 6,
      "name": "Outros",
      "created_at": "2019-03-08T13:42:18.200Z",
      "updated_at": "2019-03-08T13:42:18.200Z"
    }
  ],
  "collection_items": [
    {
      "id": 74,
      "position": 1,
      "collectionable": {
        "id": 186,
        "name": "LearningObject 186",
        "description": "Eos dolor ab quasi et quo. Omnis enim quibusdam sit. Alias eius voluptates molestias. Nihil autem et aliquid dignissimos.",
        "author": "Suélen Paiva Neto",
        "curator": null,
        "thumbnail": null,
        "object_type": "Jogo",
        "language": {
          "id": 9,
          "name": "Japonês",
          "created_at": "2019-03-08T13:42:17.293Z",
          "updated_at": "2019-03-08T13:42:17.293Z",
          "code": "jp"
        },
        "default_attachment_location": null,
        "default_attachment_id": null,
        "default_mime_type": null,
        "score": 0.81300476522519,
        "state": "published",
        "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:43:30.008Z",
        "published_at": null,
        "terms_of_service": null,
        "updated_at": "2019-03-08T13:43:30.008Z",
        "magnetlink": null,
        "publisher": {
          "id": 1688,
          "email": null,
          "provider": "email",
          "cpf": null,
          "name": "Luiza Xavier",
          "description": "Qui laborum numquam temporibus tenetur unde.",
          "submitter_request": "default",
          "education": "Esse laborum itaque qui aut ea iste dolore.",
          "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:43:29.982Z",
          "updated_at": "2019-03-08T13:43:29.982Z",
          "terms_accepted_at": null
        },
        "tags": [
          {
            "id": 1056,
            "name": "Tag 1055",
            "created_at": "2019-03-08T13:43:30.184Z",
            "updated_at": "2019-03-08T13:43:30.184Z"
          },
          {
            "id": 1055,
            "name": "Tag 1054",
            "created_at": "2019-03-08T13:43:30.141Z",
            "updated_at": "2019-03-08T13:43:30.141Z"
          },
          {
            "id": 1054,
            "name": "Tag 1053",
            "created_at": "2019-03-08T13:43:30.104Z",
            "updated_at": "2019-03-08T13:43:30.104Z"
          },
          {
            "id": 1053,
            "name": "Tag 1052",
            "created_at": "2019-03-08T13:43:30.065Z",
            "updated_at": "2019-03-08T13:43:30.065Z"
          },
          {
            "id": 1052,
            "name": "Tag 1051",
            "created_at": "2019-03-08T13:43:30.022Z",
            "updated_at": "2019-03-08T13:43:30.022Z"
          }
        ],
        "subjects": [
          {
            "id": 1,
            "name": "Língua Espanhola",
            "created_at": "2019-03-08T13:42:18.041Z",
            "updated_at": "2019-03-08T13:42:18.041Z",
            "theme": false
          },
          {
            "id": 5,
            "name": "Biologia",
            "created_at": "2019-03-08T13:42:18.066Z",
            "updated_at": "2019-03-08T13:42:18.066Z",
            "theme": false
          }
        ],
        "educational_stages": [
          {
            "id": 3,
            "name": "Ensino Fundamental II  (do 6º até o 9º ano)",
            "created_at": "2019-03-08T13:42:18.188Z",
            "updated_at": "2019-03-08T13:42:18.188Z"
          }
        ],
        "attachments": [

        ]
      },
      "collectionable_type": "LearningObject"
    },
    {
      "id": 75,
      "position": 7,
      "collectionable": {
        "id": 187,
        "name": "LearningObject 187",
        "description": "Aperiam quo et. Suscipit sapiente praesentium. Et eveniet laborum autem sapiente possimus. Soluta consequatur iure.",
        "author": "Antônio Rezende",
        "curator": null,
        "thumbnail": null,
        "object_type": "Vídeo",
        "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.894456731439631,
        "state": "published",
        "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:43:30.403Z",
        "published_at": null,
        "terms_of_service": null,
        "updated_at": "2019-03-08T13:43:30.403Z",
        "magnetlink": null,
        "publisher": {
          "id": 1696,
          "email": null,
          "provider": "email",
          "cpf": null,
          "name": "Laura Pires",
          "description": "Fugiat tempora mollitia neque nihil consequatur odit nulla deserunt.",
          "submitter_request": "default",
          "education": "Perspiciatis numquam quod voluptates ut aspernatur qui.",
          "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:43:30.384Z",
          "updated_at": "2019-03-08T13:43:30.384Z",
          "terms_accepted_at": null
        },
        "tags": [
          {
            "id": 1061,
            "name": "Tag 1060",
            "created_at": "2019-03-08T13:43:30.543Z",
            "updated_at": "2019-03-08T13:43:30.543Z"
          },
          {
            "id": 1060,
            "name": "Tag 1059",
            "created_at": "2019-03-08T13:43:30.511Z",
            "updated_at": "2019-03-08T13:43:30.511Z"
          },
          {
            "id": 1059,
            "name": "Tag 1058",
            "created_at": "2019-03-08T13:43:30.476Z",
            "updated_at": "2019-03-08T13:43:30.476Z"
          },
          {
            "id": 1058,
            "name": "Tag 1057",
            "created_at": "2019-03-08T13:43:30.446Z",
            "updated_at": "2019-03-08T13:43:30.446Z"
          },
          {
            "id": 1057,
            "name": "Tag 1056",
            "created_at": "2019-03-08T13:43:30.414Z",
            "updated_at": "2019-03-08T13:43:30.414Z"
          }
        ],
        "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": 17,
            "name": "Sociologia",
            "created_at": "2019-03-08T13:42:18.121Z",
            "updated_at": "2019-03-08T13:42:18.121Z",
            "theme": false
          }
        ],
        "educational_stages": [
          {
            "id": 1,
            "name": "Educação Infantil",
            "created_at": "2019-03-08T13:42:18.179Z",
            "updated_at": "2019-03-08T13:42:18.179Z"
          }
        ],
        "attachments": [

        ]
      },
      "collectionable_type": "LearningObject"
    },
    {
      "id": 76,
      "position": 9,
      "collectionable": {
        "id": 188,
        "name": "LearningObject 188",
        "description": "Necessitatibus ullam omnis inventore numquam vitae. Enim dolorum vel ut distinctio. Recusandae dicta enim tenetur commodi facere. Consequatur error ad rem similique voluptas facilis. Eos aliquam voluptatem deleniti.",
        "author": "Vitor Soares",
        "curator": null,
        "thumbnail": null,
        "object_type": "Jogo",
        "language": {
          "id": 4,
          "name": "Francês",
          "created_at": "2019-03-08T13:42:17.273Z",
          "updated_at": "2019-03-08T13:42:17.273Z",
          "code": "fr"
        },
        "default_attachment_location": null,
        "default_attachment_id": null,
        "default_mime_type": null,
        "score": 0.0411340641935489,
        "state": "published",
        "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:43:30.726Z",
        "published_at": null,
        "terms_of_service": null,
        "updated_at": "2019-03-08T13:43:30.726Z",
        "magnetlink": null,
        "publisher": {
          "id": 1704,
          "email": null,
          "provider": "email",
          "cpf": null,
          "name": "Gúbio Pinto",
          "description": "Dolores natus exercitationem optio.",
          "submitter_request": "default",
          "education": "Recusandae dignissimos reprehenderit repellendus.",
          "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:43:30.707Z",
          "updated_at": "2019-03-08T13:43:30.707Z",
          "terms_accepted_at": null
        },
        "tags": [
          {
            "id": 1066,
            "name": "Tag 1065",
            "created_at": "2019-03-08T13:43:30.869Z",
            "updated_at": "2019-03-08T13:43:30.869Z"
          },
          {
            "id": 1065,
            "name": "Tag 1064",
            "created_at": "2019-03-08T13:43:30.837Z",
            "updated_at": "2019-03-08T13:43:30.837Z"
          },
          {
            "id": 1064,
            "name": "Tag 1063",
            "created_at": "2019-03-08T13:43:30.804Z",
            "updated_at": "2019-03-08T13:43:30.804Z"
          },
          {
            "id": 1063,
            "name": "Tag 1062",
            "created_at": "2019-03-08T13:43:30.768Z",
            "updated_at": "2019-03-08T13:43:30.768Z"
          },
          {
            "id": 1062,
            "name": "Tag 1061",
            "created_at": "2019-03-08T13:43:30.736Z",
            "updated_at": "2019-03-08T13:43:30.736Z"
          }
        ],
        "subjects": [
          {
            "id": 13,
            "name": "Língua Portuguesa",
            "created_at": "2019-03-08T13:42:18.102Z",
            "updated_at": "2019-03-08T13:42:18.102Z",
            "theme": false
          },
          {
            "id": 15,
            "name": "Matemática",
            "created_at": "2019-03-08T13:42:18.112Z",
            "updated_at": "2019-03-08T13:42:18.112Z",
            "theme": false
          }
        ],
        "educational_stages": [
          {
            "id": 1,
            "name": "Educação Infantil",
            "created_at": "2019-03-08T13:42:18.179Z",
            "updated_at": "2019-03-08T13:42:18.179Z"
          }
        ],
        "attachments": [

        ]
      },
      "collectionable_type": "LearningObject"
    }
  ]
}