Follows API

An User can follow a Collection or another User to see their Activities.

Following

POST /v1/:type/:id/follow

Parameters

Name Description
type Type of object (users or collections)
id The id of the object to follow

Request

Headers

Accept: application/json
Content-Type: application/json
Access-Token: RAq_PHDuxmUIVlpVBpbmrg
Client: XYedSr3rFv6JlxfI-bb_AQ
Uid: orval@bins.net
Host: example.org
Cookie: 

Route

POST /v1/users/1/follow

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/users/1/follow" -d '' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: RAq_PHDuxmUIVlpVBpbmrg" \
	-H "Client: XYedSr3rFv6JlxfI-bb_AQ" \
	-H "Uid: orval@bins.net"

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=YTNtMTkwcVRMMzZaSE9IcFdvQXF6NVlQV1ZrL2g4b2w0eHI3ckxLcHplc2pkTTN4ank4MGUzTk03ZUpGdkxvOU9oQTB4bDVSTkgzL3RlaTNFVFNYdjgzcGNWTFRScjMra0R2d2M2eFFycVIrV1F1dGZYL255ckIvYWViQ1RIUUZvR3NqdWFFU3I1Znl3eG1SVnFGdElaaS9icGNXZDJkb1l1cEJmbW4wOC9hdlJIUUd2emhsREsyY1RiRjY4Zm9pLS1zRFNVaElpQkdrUVVXeVNCUkZGMmFnPT0%3D--f459601b92653ea7052c333befd13965e39426dc; path=/; HttpOnly
Vary: Origin
ETag: W/"36a9e7f1c95b82ffb99743e0c5c4ce95"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: beba43ed-80ab-4e6f-883e-c51a05e59ece
X-Runtime: 0.117638
Content-Length: 1

Status

201 Created

Body