Learning Objects API

Learning objects are educational contents (movie, odf, file, sound, etc) which an user can show, create, update and destroy.

Unliking a learning object

PUT /v1/learning_objects/:id/like

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: qEve_kPDR7TNabUVc3wBDA
Client: ilFWNdoHKelZTByCwrEIbg
Uid: hadley_pagac@gleichnerkovacek.io
Host: example.org
Cookie: 

Route

PUT /v1/learning_objects/735/like

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/735/like" -d '' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: qEve_kPDR7TNabUVc3wBDA" \
	-H "Client: ilFWNdoHKelZTByCwrEIbg" \
	-H "Uid: hadley_pagac@gleichnerkovacek.io"

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=NW16b2RMSVh5WGdaV3V5WTF6RGVudFpNNDMvNUhKbDBjd1pWaUlJd2tYdTZzVHUxaDdEQVpSa0RvZ1ZQRnoveXpJbnBxelYyNjZHeHlmcEJYbkRJMEdCWDcxSjBjWlh0Zzg3YzFGYnhCQlhpQ2xhODdNN3c5WTNPaHlDRnZWVXFoNXllWEt5UFNxUW1vYmZDMzhYOXB3eUxYczRkU3JvNHNVUkZwM1VXQUJ6OWdlcjU5b0JNNTdneTN6b21jdDlJLS1WWEFoTHppRXJFdDRNYm4rajJJSmNBPT0%3D--b2bea033228838aee25997b56c22609665feed51; path=/; HttpOnly
Vary: Origin
ETag: W/"618de7d9f46f3f697d827a1b6d849747"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 61aca995-3092-44b4-b2cd-86d5775b4507
X-Runtime: 0.140352
Content-Length: 11

Status

200 OK

Body

{
  "count": 0
}