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.

Removing a bookmark

DELETE v1/users/:user_id/bookmarks/:bookmark_id

Parameters

Name Description
user_id The user id
bookmark_id The id of the bookmark
bookmarks[id] The id of the object
bookmarks[type] Represents the type of bookmark, [ LearningObject, Collection]

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: Q10m8sbzg9nC9aJcLcJBJA
Client: erUlsti7qCvcSzVd-wretQ
Uid: fatima@schmitt.biz
Host: example.org
Cookie: 

Route

DELETE v1/users/768/bookmarks/3

Body

{"bookmarks":{"id":78,"type":"LearningObject"}}

cURL

curl "https://api.portalmec.c3sl.ufpr.brv1/users/768/bookmarks/3" -d '{"bookmarks":{"id":78,"type":"LearningObject"}}' -X DELETE \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: Q10m8sbzg9nC9aJcLcJBJA" \
	-H "Client: erUlsti7qCvcSzVd-wretQ" \
	-H "Uid: fatima@schmitt.biz"

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: text/plain; charset=utf-8
Set-Cookie: _session_id=aDFUVDJNZjR2T1hwenF0OEhaQkhBMkZvd2w0dEJyY1EweWZmZUVoVUQrVnJ4RU45WXBzVjRGMy9BUTRtZWVYazRHcXdvcEttTUV6bUh6aFZwY1liZ2tnTFhHVFFkY1dQZUFsbFdFNjVlcXl3VG15WkJkY0d0bmN0Q0FYcDdNM1hQVmF5UllzZEdienlNZjJhN3lhZExzM0NyR28zWjUwWnB2Rnh0OXEvNFVHcm5Mb1c4UzFYenN6aHJLVEF6RnBHLS1qM25WTVV6WnRaTjhod1llQ3g1SjZRPT0%3D--e7b806932702fb47e78788e0a95e87409b10125d; path=/; HttpOnly
Vary: Origin
ETag: W/"36a9e7f1c95b82ffb99743e0c5c4ce95"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 348dd0e0-b665-4340-9deb-7f031bbacecd
X-Runtime: 0.115161
Content-Length: 1

Status

200 OK

Body

[binary data]