Users API

User represents the teacher and students in the system.

Showing an user’s liked learning objects

GET /v1/users/:id/learning_objects/liked

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: z5m-xSSuqsVweQFdZU3LZg
Client: Ga_yIUN8pqBfknvfKq7kWw
Uid: marielle@lind.org
Host: example.org
Cookie: 

Route

GET /v1/users/9065/learning_objects/liked

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/users/9065/learning_objects/liked" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: z5m-xSSuqsVweQFdZU3LZg" \
	-H "Client: Ga_yIUN8pqBfknvfKq7kWw" \
	-H "Uid: marielle@lind.org"

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=WWtWSzdZektGWW1rZCtLOHJLSmMxTGU2VjhFZDhIZEdXcnFqb3RHTlpsQnYvN0tFa1hONCthVnRrc3ZINHNyMjdKS3ZLeEE3RFUyYXVwZVJuWGlySDBTUWpaN2lwSUY4ZmNBRjEyUGJITnhLYk9aSWlSNTJxVUIxTFNocGhxdjhtYkZHNHdUSTk1dS9jeFRRMHduNTVuNkRhSHZObG8vcWpCTWxxYUpkLyszVmVua1FtZHQ4ZGdVT2xSN29mUHhZLS1nNnNHci9XQTFvRklQYTVzYk9uSVh3PT0%3D--3b9d0d64d0f0040f9ebc8b11443fa57add0dcce3; path=/; HttpOnly
Vary: Origin
ETag: W/"1d262fe185b92bd091a9fcadc178908c"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: ffa082c8-4c5e-460c-af94-e9f2b22bcf18
X-Runtime: 0.157564
Content-Length: 2464

Status

200 OK

Body

[
  {
    "id": 1003,
    "name": "LearningObject 1002",
    "description": "Corporis quibusdam delectus. Debitis et ut natus eos qui ab. Corrupti temporibus soluta quae. Inventore et tenetur reiciendis molestiae id rerum natus.",
    "author": "Dr. Sirineu Pinto",
    "curator": null,
    "thumbnail": null,
    "object_type": "Mapa",
    "language": {
      "id": 3,
      "name": "Espanhol",
      "created_at": "2019-03-08T13:42:17.268Z",
      "updated_at": "2019-03-08T13:42:17.268Z",
      "code": "es"
    },
    "default_attachment_location": null,
    "default_attachment_id": null,
    "default_mime_type": null,
    "score": 0.429057949309758,
    "state": "published",
    "review_average": 0.0,
    "link": null,
    "software": null,
    "license": null,
    "liked": true,
    "likes_count": 1,
    "downloads_count": 0,
    "views_count": 0,
    "reviewed": false,
    "complained": false,
    "shares_count": 0,
    "created_at": "2019-03-08T13:49:10.351Z",
    "published_at": null,
    "terms_of_service": null,
    "updated_at": "2019-03-08T13:49:10.351Z",
    "magnetlink": null,
    "publisher": {
      "id": 9066,
      "email": null,
      "provider": "email",
      "cpf": null,
      "name": "Davi Fernandes",
      "description": "Autem et vitae consequatur.",
      "submitter_request": "default",
      "education": "Optio deserunt non vitae rerum cupiditate maiores.",
      "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:10.328Z",
      "updated_at": "2019-03-08T13:49:10.328Z",
      "terms_accepted_at": null
    },
    "tags": [
      {
        "id": 5648,
        "name": "Tag 5645",
        "created_at": "2019-03-08T13:49:10.491Z",
        "updated_at": "2019-03-08T13:49:10.491Z"
      },
      {
        "id": 5647,
        "name": "Tag 5644",
        "created_at": "2019-03-08T13:49:10.460Z",
        "updated_at": "2019-03-08T13:49:10.460Z"
      },
      {
        "id": 5646,
        "name": "Tag 5643",
        "created_at": "2019-03-08T13:49:10.428Z",
        "updated_at": "2019-03-08T13:49:10.428Z"
      },
      {
        "id": 5645,
        "name": "Tag 5642",
        "created_at": "2019-03-08T13:49:10.395Z",
        "updated_at": "2019-03-08T13:49:10.395Z"
      },
      {
        "id": 5644,
        "name": "Tag 5641",
        "created_at": "2019-03-08T13:49:10.364Z",
        "updated_at": "2019-03-08T13:49:10.364Z"
      }
    ],
    "subjects": [
      {
        "id": 17,
        "name": "Sociologia",
        "created_at": "2019-03-08T13:42:18.121Z",
        "updated_at": "2019-03-08T13:42:18.121Z",
        "theme": false
      },
      {
        "id": 12,
        "name": "História",
        "created_at": "2019-03-08T13:42:18.097Z",
        "updated_at": "2019-03-08T13:42:18.097Z",
        "theme": false
      }
    ],
    "educational_stages": [
      {
        "id": 2,
        "name": "Ensino Fundamental I (1º até o 5º ano )",
        "created_at": "2019-03-08T13:42:18.184Z",
        "updated_at": "2019-03-08T13:42:18.184Z"
      }
    ],
    "attachments": [

    ]
  }
]