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: 72mCBHw8PpEzXjqxbKVCwQ
Client: 8kI49spxeA2olL7YewBs8w
Uid: everett_fay@hilpertadams.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: 72mCBHw8PpEzXjqxbKVCwQ" \
	-H "Client: 8kI49spxeA2olL7YewBs8w" \
	-H "Uid: everett_fay@hilpertadams.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=SWZ4VVhZajZDb1Zhb0orTzA0aTVxT2hZU1JxVTlYS3k2L1VJY01TaWMydmpBN0xHdjRCaWkyZE9UVnBpVy9HSjZ2N1lQUTV1TEI4VVEzWDlwVkJKNFFUM21DdnJVZytTRVFSUVNiQXZoc0hlSXFUdkxWeVBINElWY0libGpnSVhGTjNFUzd6L0U3SFEyWm9naHVCSUsxSys5MWMvSTJKdzUzU29DMnZzem81dkllci9qTzZTK2VZeTlhRnlMN2xULS1CeEZrL24rTTlOS0RzV3FvaFFTMHNRPT0%3D--dc1b520516ac6813918c808fee65bef1cb79abad; path=/; HttpOnly
Vary: Origin
ETag: W/"36a9e7f1c95b82ffb99743e0c5c4ce95"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 8082aeda-6b39-4638-b563-a49ddbd71f9d
X-Runtime: 0.154096
Content-Length: 1

Status

200 OK

Body