This API is responsible for executing data interactions against a Firebase user or set of users.
/api/user/getUser
Query
Retrieves a specific user by passing a uid parameter
/api/user/getAppUser
Query
Retrieves the full user object for the authenticated user (requires matching x-user-id header)
/api/user/getUsers
Body
Retrieves the full list of users excluding the requesting user
/api/user/listUsers
Body
Retrieves a simplified list of all users for display purposes (cached for 24 hours)
/api/user/retrieveUserNetwork
Body
Retrieves the specified user's connection network
/api/user/sendUserConnectRequest
Body
Sends a Connection Request from one user to another.
/api/user/acceptConnectionRequest
Body
Accepts a Connection Request from one user to another.
/api/user/removeUserConnectRequest
Body
Removes a Connection Request from one user to another. Removes from the perspective of uid1 user - "connectionRequests" removes a connection request sent from another user. "connectionRequestsSent" removes a connection request sent by the user.
/api/user/removeConnection
Body
Removes a connection between two users by removing each user from the other's connections array.
/api/user/blockUser
Body
Blocks a specified user for the requesting user. This action will also remove the blocked/blocking users from each others network if present. Blocked and blocking users will not be viewable or show in any lists or searches for each other.
/api/user/unblockUser
Body
Unblocks a previously blocked user.
/api/user/updateUser
Body
Updates user information for the specified user.
/api/user/createUser
Body
Creates a new user in the system.