Users API

User represents the teacher and students in the system.

Showing an user’s liked collections

GET /v1/users/:id/collections/liked

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: bEbHbB6nQGwbhGCsp2wzMw
Client: 25QwzMm_ihGV3VmtYZrV8g
Uid: buster_kreiger@beerfahey.biz
Host: example.org
Cookie: 

Route

GET /v1/users/9022/collections/liked

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/users/9022/collections/liked" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: bEbHbB6nQGwbhGCsp2wzMw" \
	-H "Client: 25QwzMm_ihGV3VmtYZrV8g" \
	-H "Uid: buster_kreiger@beerfahey.biz"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Total-Count: 1
Content-Type: application/json; charset=utf-8
Set-Cookie: _session_id=OUgwYmVWZXB1eXdTazF4NDlhNUVNcU5wOU9XZzN1TmtjL1phVFRlVlN2SGE1ZW1mS2N5QjR0L3lNSDl2YkRJYXRqSlBZMzFMTFZUTkg3SWlaa2JXNkxPUlFJbjhLdm5XU1JYd3o0d21NcC9nR0czeVZoOGhmRXN5eXI0dzRBSXRubUc2cTlOMXlscWRuekFmQVpnbEM3SHRFRlIrRVlyWlBYVStqT01EaG1aZU8vMVVNWmxGYjRlclZEd2tQcTBNLS1yNHJIYnE1T3ZveGZwMWlEMmszMXBnPT0%3D--04575ab3de51b44575f9ab50290acc0cab27f451; path=/; HttpOnly
Vary: Origin
ETag: W/"924a6632d867f6c2e90772da5aa97ae8"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: b5ad0ee0-f8ae-4c50-8343-cb2874460aab
X-Runtime: 0.325071
Content-Length: 9478

Status

200 OK

Body

[
  {
    "id": 128,
    "name": "East Veloso",
    "curator": null,
    "created_at": "2019-03-08T13:49:08.381Z",
    "updated_at": "2019-03-08T13:49:08.381Z",
    "description": "Voluptatibus labore atque qui et nobis et eaque laudantium.",
    "privacy": "public",
    "score": 0.0,
    "likes_count": 1,
    "liked": true,
    "followed": false,
    "reviewed": false,
    "complained": false,
    "review_average": 0.0,
    "thumbnail": "",
    "items_thumbnails": [

    ],
    "owner": {
      "id": 9023,
      "email": null,
      "provider": "email",
      "cpf": null,
      "name": "Sarah Pereira",
      "description": "Sunt neque maiores cum placeat illo eum aliquid at.",
      "submitter_request": "default",
      "education": "Consequuntur quo consectetur placeat asperiores blanditiis similique.",
      "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": 1,
      "created_at": "2019-03-08T13:49:08.364Z",
      "updated_at": "2019-03-08T13:49:08.364Z",
      "terms_accepted_at": null
    },
    "tags": [
      {
        "id": 5628,
        "name": "Tag 5625",
        "created_at": "2019-03-08T13:49:08.530Z",
        "updated_at": "2019-03-08T13:49:08.530Z"
      },
      {
        "id": 5627,
        "name": "Tag 5624",
        "created_at": "2019-03-08T13:49:08.498Z",
        "updated_at": "2019-03-08T13:49:08.498Z"
      },
      {
        "id": 5626,
        "name": "Tag 5623",
        "created_at": "2019-03-08T13:49:08.461Z",
        "updated_at": "2019-03-08T13:49:08.461Z"
      },
      {
        "id": 5625,
        "name": "Tag 5622",
        "created_at": "2019-03-08T13:49:08.428Z",
        "updated_at": "2019-03-08T13:49:08.428Z"
      },
      {
        "id": 5624,
        "name": "Tag 5621",
        "created_at": "2019-03-08T13:49:08.391Z",
        "updated_at": "2019-03-08T13:49:08.391Z"
      }
    ],
    "subjects": [
      {
        "id": 11,
        "name": "Geografia",
        "created_at": "2019-03-08T13:42:18.093Z",
        "updated_at": "2019-03-08T13:42:18.093Z",
        "theme": false
      },
      {
        "id": 4,
        "name": "Arte",
        "created_at": "2019-03-08T13:42:18.061Z",
        "updated_at": "2019-03-08T13:42:18.061Z",
        "theme": false
      }
    ],
    "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": 382,
        "position": 12,
        "collectionable": {
          "id": 1000,
          "name": "LearningObject 999",
          "description": "Ab ut quasi ut. Sunt debitis ut et laudantium vero. Est et qui.",
          "author": "Cecília Sales",
          "curator": null,
          "thumbnail": null,
          "object_type": "Animação",
          "language": {
            "id": 5,
            "name": "Alemão",
            "created_at": "2019-03-08T13:42:17.277Z",
            "updated_at": "2019-03-08T13:42:17.277Z",
            "code": "de"
          },
          "default_attachment_location": null,
          "default_attachment_id": null,
          "default_mime_type": null,
          "score": 0.0868943018189057,
          "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:49:08.602Z",
          "published_at": null,
          "terms_of_service": null,
          "updated_at": "2019-03-08T13:49:08.602Z",
          "magnetlink": null,
          "publisher": {
            "id": 9029,
            "email": null,
            "provider": "email",
            "cpf": null,
            "name": "Matheus Barros",
            "description": "Minima autem et atque error quaerat ut consequuntur aut.",
            "submitter_request": "default",
            "education": "Eligendi voluptas ipsum maxime.",
            "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": 1,
            "collections_count": 0,
            "created_at": "2019-03-08T13:49:08.582Z",
            "updated_at": "2019-03-08T13:49:08.582Z",
            "terms_accepted_at": null
          },
          "tags": [
            {
              "id": 5633,
              "name": "Tag 5630",
              "created_at": "2019-03-08T13:49:08.751Z",
              "updated_at": "2019-03-08T13:49:08.751Z"
            },
            {
              "id": 5632,
              "name": "Tag 5629",
              "created_at": "2019-03-08T13:49:08.716Z",
              "updated_at": "2019-03-08T13:49:08.716Z"
            },
            {
              "id": 5631,
              "name": "Tag 5628",
              "created_at": "2019-03-08T13:49:08.682Z",
              "updated_at": "2019-03-08T13:49:08.682Z"
            },
            {
              "id": 5630,
              "name": "Tag 5627",
              "created_at": "2019-03-08T13:49:08.649Z",
              "updated_at": "2019-03-08T13:49:08.649Z"
            },
            {
              "id": 5629,
              "name": "Tag 5626",
              "created_at": "2019-03-08T13:49:08.614Z",
              "updated_at": "2019-03-08T13:49:08.614Z"
            }
          ],
          "subjects": [
            {
              "id": 2,
              "name": "Língua Inglesa",
              "created_at": "2019-03-08T13:42:18.049Z",
              "updated_at": "2019-03-08T13:42:18.049Z",
              "theme": false
            },
            {
              "id": 21,
              "name": "Educação do Campo",
              "created_at": "2019-03-08T13:42:18.141Z",
              "updated_at": "2019-03-08T13:42:18.141Z",
              "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": [

          ]
        },
        "collectionable_type": "LearningObject"
      },
      {
        "id": 383,
        "position": 2,
        "collectionable": {
          "id": 1001,
          "name": "LearningObject 1000",
          "description": "Voluptatum omnis sed voluptas id perferendis molestiae sed. Aliquid dolor facere id rerum. Cum aperiam et officiis omnis numquam nulla magnam.",
          "author": "Dr. Manuela Cruz",
          "curator": null,
          "thumbnail": null,
          "object_type": "Vídeo",
          "language": {
            "id": 7,
            "name": "Mandarim",
            "created_at": "2019-03-08T13:42:17.285Z",
            "updated_at": "2019-03-08T13:42:17.285Z",
            "code": "zh"
          },
          "default_attachment_location": null,
          "default_attachment_id": null,
          "default_mime_type": null,
          "score": 0.70461243166275,
          "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:49:08.963Z",
          "published_at": null,
          "terms_of_service": null,
          "updated_at": "2019-03-08T13:49:08.963Z",
          "magnetlink": null,
          "publisher": {
            "id": 9037,
            "email": null,
            "provider": "email",
            "cpf": null,
            "name": "Sara Melo",
            "description": "Eligendi error aliquam qui sit quisquam quas facilis aut.",
            "submitter_request": "default",
            "education": "Sint nostrum nam molestiae explicabo laboriosam.",
            "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": 1,
            "collections_count": 0,
            "created_at": "2019-03-08T13:49:08.946Z",
            "updated_at": "2019-03-08T13:49:08.946Z",
            "terms_accepted_at": null
          },
          "tags": [
            {
              "id": 5638,
              "name": "Tag 5635",
              "created_at": "2019-03-08T13:49:09.095Z",
              "updated_at": "2019-03-08T13:49:09.095Z"
            },
            {
              "id": 5637,
              "name": "Tag 5634",
              "created_at": "2019-03-08T13:49:09.064Z",
              "updated_at": "2019-03-08T13:49:09.064Z"
            },
            {
              "id": 5636,
              "name": "Tag 5633",
              "created_at": "2019-03-08T13:49:09.035Z",
              "updated_at": "2019-03-08T13:49:09.035Z"
            },
            {
              "id": 5635,
              "name": "Tag 5632",
              "created_at": "2019-03-08T13:49:09.004Z",
              "updated_at": "2019-03-08T13:49:09.004Z"
            },
            {
              "id": 5634,
              "name": "Tag 5631",
              "created_at": "2019-03-08T13:49:08.974Z",
              "updated_at": "2019-03-08T13:49:08.974Z"
            }
          ],
          "subjects": [
            {
              "id": 22,
              "name": "Educação Especial",
              "created_at": "2019-03-08T13:42:18.145Z",
              "updated_at": "2019-03-08T13:42:18.145Z",
              "theme": true
            },
            {
              "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": 5,
              "name": "Ensino Superior",
              "created_at": "2019-03-08T13:42:18.196Z",
              "updated_at": "2019-03-08T13:42:18.196Z"
            }
          ],
          "attachments": [

          ]
        },
        "collectionable_type": "LearningObject"
      },
      {
        "id": 384,
        "position": 1,
        "collectionable": {
          "id": 1002,
          "name": "LearningObject 1001",
          "description": "Deleniti autem est quis maiores. Ratione mollitia eligendi in architecto. Omnis ut est at quibusdam quia sed.",
          "author": "Janaína Cruz",
          "curator": null,
          "thumbnail": null,
          "object_type": "Experimento prático",
          "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.169428272848613,
          "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:49:09.267Z",
          "published_at": null,
          "terms_of_service": null,
          "updated_at": "2019-03-08T13:49:09.267Z",
          "magnetlink": null,
          "publisher": {
            "id": 9045,
            "email": null,
            "provider": "email",
            "cpf": null,
            "name": "Ígor Moraes",
            "description": "Repellat soluta perferendis delectus voluptatum sed ut sequi sit.",
            "submitter_request": "default",
            "education": "Mollitia excepturi eaque commodi.",
            "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": 1,
            "collections_count": 0,
            "created_at": "2019-03-08T13:49:09.250Z",
            "updated_at": "2019-03-08T13:49:09.250Z",
            "terms_accepted_at": null
          },
          "tags": [
            {
              "id": 5643,
              "name": "Tag 5640",
              "created_at": "2019-03-08T13:49:09.393Z",
              "updated_at": "2019-03-08T13:49:09.393Z"
            },
            {
              "id": 5642,
              "name": "Tag 5639",
              "created_at": "2019-03-08T13:49:09.362Z",
              "updated_at": "2019-03-08T13:49:09.362Z"
            },
            {
              "id": 5641,
              "name": "Tag 5638",
              "created_at": "2019-03-08T13:49:09.334Z",
              "updated_at": "2019-03-08T13:49:09.334Z"
            },
            {
              "id": 5640,
              "name": "Tag 5637",
              "created_at": "2019-03-08T13:49:09.306Z",
              "updated_at": "2019-03-08T13:49:09.306Z"
            },
            {
              "id": 5639,
              "name": "Tag 5636",
              "created_at": "2019-03-08T13:49:09.277Z",
              "updated_at": "2019-03-08T13:49:09.277Z"
            }
          ],
          "subjects": [
            {
              "id": 6,
              "name": "Ciências da Natureza",
              "created_at": "2019-03-08T13:42:18.071Z",
              "updated_at": "2019-03-08T13:42:18.071Z",
              "theme": false
            },
            {
              "id": 1,
              "name": "Língua Espanhola",
              "created_at": "2019-03-08T13:42:18.041Z",
              "updated_at": "2019-03-08T13:42:18.041Z",
              "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": [

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