Collections API

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

Liking a collection

PUT /v1/collections/:id/like

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: cJaN0gW0d7ZYt4C9juyNWQ
Client: PcC8gRrSpwCb7mGlX5extA
Uid: gaylord.koelpin@lang.co
Host: example.org
Cookie: 

Route

PUT /v1/collections/77/like

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/collections/77/like" -d '' -X PUT \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: cJaN0gW0d7ZYt4C9juyNWQ" \
	-H "Client: PcC8gRrSpwCb7mGlX5extA" \
	-H "Uid: gaylord.koelpin@lang.co"

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=ampKaUh5NFNpL3JJcjJxSHJCM1creDdnQXpjV2VzV2I0czJBSFRmdVFtZFhTbVdKcUFWenRQd1BHSmFtcXBIMWQrdGVVL1FyWSt0eVRMZ2dpRUFodndzaUFZcXlLTGhHNmdXVXJqNGJEL09saDkvN1p5NVJFTkF6eUs5amJ3a01hUmU1N1cxL1NBd00ySEVCZkVLTXFrZk5MTFd3dUs1Z0tPMERVMlRlMFd5SnNoU3pBQUtZT1MrOGtWaFJZWHdVLS12ZS9idUgzVldBQUIyK1VQbjdPRVBRPT0%3D--c846d1cca7f17763e3d4817f4babf1d24dee0b57; path=/; HttpOnly
Vary: Origin
ETag: W/"6aea6dfe6561984cdc5c54ead84d47d2"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 07db6003-c3a6-498a-8dd4-c5cd67a257f3
X-Runtime: 0.127712
Content-Length: 11

Status

201 Created

Body

{
  "count": 1
}