Collections API

Collection is a group of educational content or another collection, which an user can show, create, update and destroy.

Unliking a collection

PUT /v1/collections/:id/like

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: gpppj99zkNzATXvOWyU_fQ
Client: GSq6wwJC2g13EfcrQTUWTQ
Uid: thad@west.org
Host: example.org
Cookie: 

Route

PUT /v1/collections/89/like

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/collections/89/like" -d '' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: gpppj99zkNzATXvOWyU_fQ" \
	-H "Client: GSq6wwJC2g13EfcrQTUWTQ" \
	-H "Uid: thad@west.org"

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=SmtwbHRsVHF6NElQdkZHS1Mwa2VEZ2p6Wi9vTERTNzZaR1N2UldrTEdIWThMcmEzcjZESWl5UzlTTDQrVnhJc0lmMGJ2dXY1VnZQZGUwZ3ZWMis5YzRaYVZ0elFLMWxvZ0hXcFlDVHQ3dUJ2VmQ3Yy9FbUJwamptbis3OFVZOHcxcmlUa1JiR1pUTVprdm91TmRsajJnMXhPZnZZUFVEb3hlZnlEeExXZmVUT2xyUGVEVHRkY1JGUTZ0NmhmYVkrLS1lU3UxV0FkUm1LSkVpM0VzUk1PK2dBPT0%3D--ce1950db26f8bd7b4be867f47572f02f88e69495; path=/; HttpOnly
Vary: Origin
ETag: W/"618de7d9f46f3f697d827a1b6d849747"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: f9cfe052-f2c1-40ab-9fa6-2b8b55896678
X-Runtime: 0.115166
Content-Length: 11

Status

200 OK

Body

{
  "count": 0
}