Bookmarks API

Bookmark is a relation between user and object called ‘Favoritos’, which are educational contents or collections. Bookmarks do not have an index for itens.

Getting bookmarks

GET /v1/users/:user_id/bookmarks

Parameters

Name Description
user_id The user id

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: F0KQM3MR76-Zqld6hyvVVA
Client: EDRp3NMgPgQ6kXvhZ23oHg
Uid: tiffany_larkin@bernier.name
Host: example.org
Cookie: 

Route

GET /v1/users/566/bookmarks

cURL

curl -g "https://api.portalmec.c3sl.ufpr.br/v1/users/566/bookmarks" -X GET \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: F0KQM3MR76-Zqld6hyvVVA" \
	-H "Client: EDRp3NMgPgQ6kXvhZ23oHg" \
	-H "Uid: tiffany_larkin@bernier.name"

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=YThacmJjWkMyMDdOMUZ6c1ZQaUYvTS9ZVUxDYWk3M1UxMExkN3l1a1RRYi8zeml4dEtodjJPeExESTQrWTJ4TllIeTZyVk96SzBTUVphZHZydkNIeXNkb2dWeUhDaFdmdnpud29LU1FXa0ZldzNMTTFXMFZ2dzZ3dmxkUXRMUUFjRm55NWpkWjcrNDdsZVZaalQzQ3dwSzhvcnlRSmR4bXBJbzJvK1NoLyszbkg4TWtNamlBZFNwTVFubFhFNzhxLS00QjdxMjR0UGFFMUxLQVFIUXZ4bFl3PT0%3D--81c935b2374d8af2eb71134d5c1fa7525a6285db; path=/; HttpOnly
Vary: Origin
ETag: W/"d3f7e7a68e26cc2226456f228756cec9"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: b70c3ce5-f250-4dce-bd2c-c4e8ff62da55
X-Runtime: 0.098244
Content-Length: 162

Status

200 OK

Body

[
  {
    "id": 1,
    "user_id": 566,
    "bookmarkable_type": "LearningObject",
    "bookmarkable_id": 65,
    "created_at": "2019-10-31T13:30:16.676Z",
    "updated_at": "2019-10-31T13:30:16.676Z"
  }
]