Learning Objects API

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

Liking a learning object

PUT /v1/learning_objects/:id/like

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: KoG1KO7X2brsZfZvEN3Ouw
Client: kMKVws5FO4i0dWMJw3lbrw
Uid: edmund_sanford@wuckertdamore.com
Host: example.org
Cookie: 

Route

PUT /v1/learning_objects/723/like

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/learning_objects/723/like" -d '' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: KoG1KO7X2brsZfZvEN3Ouw" \
	-H "Client: kMKVws5FO4i0dWMJw3lbrw" \
	-H "Uid: edmund_sanford@wuckertdamore.com"

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=Zzl0ckpObXFFZjdlaTlBY3IrTE9USmhHMlRDZVp4Qm54QUZKcjNaWHkzM0hjd2ZpVnFKRThrb1BTRjU0aThuWm9rVXhmWkE3dk9VMEl1QmpVWTJVODRZQWhBSHU3WUd2MHd2eVBMaWlReldyTXcwWVNEODlHVHBMd1FpeEt3eGdqT3hYQkpvbHMwcDArek9OdElscTFDenBTaVJjTTF2dlpmQXdaM3kxYU1lSmRNY2tXcTI0dy9UQVErSGFvL3d2LS0rYlgvNzEvU0ozMGc2Y0hsb2RJUW9nPT0%3D--967fb52aaedae5a3c8b5dc656b34deef0c937b2e; path=/; HttpOnly
Vary: Origin
ETag: W/"6aea6dfe6561984cdc5c54ead84d47d2"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: bb2f269b-d2f5-4bf6-9efd-11a1b1f4f8f8
X-Runtime: 0.113934
Content-Length: 11

Status

201 Created

Body

{
  "count": 1
}