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: GM50iLW_E6q7Rg-5GadyPQ
Client: HwcEmMYuUmGBjjWt3uAGlg
Uid: monroe@baumbach.org
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: GM50iLW_E6q7Rg-5GadyPQ" \
	-H "Client: HwcEmMYuUmGBjjWt3uAGlg" \
	-H "Uid: monroe@baumbach.org"

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=WVZGM2ZzTmZRdS9aU2J2Rk83S0dQWjBna21WMExYZE4xcnl0N2lwU2VwT0tSMnBtLytyampFQTJqR0p6eWRxWGdpZkMwNEdQSUVXR2lUd1gydzNnRHZwYVc2U1pILzNxVkZoRG40RHhJazY3NVFqZmI0OHNRZ2pLOFhNQlFBN3haRDR2UmJjMFRCckVOejE4UzljWXBjczZwWnRwU1l1b1lEOUJPNlRmTXNlMjFCbFhlMnBzQWpPRFlZNjI2dEtsLS1zcUFONlZENGh3MEdBUGxmWkFGZkxnPT0%3D--42feb81d263642d20a56adee5c2d8ec908e4b9f1; path=/; HttpOnly
Vary: Origin
ETag: W/"36a9e7f1c95b82ffb99743e0c5c4ce95"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 2c9898a2-dc3e-4b83-b88c-12eecbdeacbb
X-Runtime: 0.112874
Content-Length: 1

Status

200 OK

Body

[binary data]