Skip to content

Users Endpoint

aris alexis edited this page Feb 8, 2016 · 1 revision

Restricted GET /users/{id} fetches a User entity (according to the requester's relation with this user different fields may be set)

POST /users payload is a JSON User object with at least the not null properties indicated in the entity section

Restricted PUT /users/userId payload is a JSON User object with at least the not null properties indicated in the entity section

Restricted GET /users/{userid}/friends retrieves a list of User objects (with only the basic properties set) that are friends of the requester

Restricted POST /users/me/friends/{user} FriendRequest requestMessage="optional" manages a friend request and returns a FriendRequest object

Restricted GET /users/me/friends/requests/{requestId}?action=ACCEPT/REJECT message=optional

Restricted DELETE /users/me/friends/{id} deletes a current friend or rejects an existing friend request

Restricted GET /users/me/notifications fetches all notifications

Restricted DELETE /users/me/notifications/{id} deletes a notification (as seen)

Restricted GET /users/me/requests returns all Request base class events

Restricted GET /users/{user}/events (not implemented it is still in /rest/activities/byUser/{user}/events )

GET /users/byLocation lat,lon,radius,start,size

Clone this wiki locally