10.4.3.1.2. Connection

Warning

You are looking at documentation for an older release. Not what you want? See the current release documentation.

A connection or a relationship between two users is established first when one of them sends a request, that actually is a connection with the status pending. When the receiver accepts the request, its status changes to confirmed.

This is the full version of a Connection JSON entity:

{
  "id": "1d8661627f0001013e43838b8622206e",
  "href": "http://localhost:8080/rest/v1/social/usersRelationships/1d8661627f0001013e43838b8622206e",
  "sender": "http://localhost:8080/rest/v1/social/users/root",
  "receiver": "http://localhost:8080/rest/v1/social/users/john",
  "status": "CONFIRMED"
}

There are two services that work on this entity. Their functionalities are basically identical.

In Create and Update, you can use the exact JSON like above, or a simpler version. Pay attention to fields "sender" and "receiver" in the following examples:

Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus