Follows API

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

Unfollowing

DELETE /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: KcszJUjNO2C5OEyJILacyg
Client: 5T9XfGHWiL02iSnJk7NJnA
Uid: lulu@heidenreich.io
Host: example.org
Cookie: 

Route

DELETE /v1/users/1/follow

cURL

curl "https://api.portalmec.c3sl.ufpr.br/v1/users/1/follow" -d '' -X DELETE \
	-H "Accept: application/json" \
	-H "Content-Type: application/json" \
	-H "Access-Token: KcszJUjNO2C5OEyJILacyg" \
	-H "Client: 5T9XfGHWiL02iSnJk7NJnA" \
	-H "Uid: lulu@heidenreich.io"

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=RDhwcU1MY2tMd0tIcWJWN2EyMTB3czRINUJRYXFveGIxWTJOQzhJUWN2bjVNZXUwSGZwT0FZdWxZNDJBaEtIZ2ZjU05oTnVGVHZleG1LQUtISmdwT2x2citlS21YdnV0cFIxa2JMaE9WUFBiV3pzbnlTU3VmcUtnSmVSRXFqWmxyMENIN0EwOW1mYXoxTit3T05GZlJlNGRjRU54Q0xkUmJTR3cxb21LbHZtQXVFK0FTWlIzYmV3OVgvVUE1STQyLS1BV25ZNjFkODArZTJUR0I5NjRwTHdRPT0%3D--78436f5e79e0c42472605636be7cdce95e136264; path=/; HttpOnly
Vary: Origin
ETag: W/"36a9e7f1c95b82ffb99743e0c5c4ce95"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 53bed966-77f5-473d-b9fd-69a63183db87
X-Runtime: 0.109956
Content-Length: 1

Status

200 OK

Body