CommunityServiceRest Resource
Communities
POST /social/community/addGroups
Add the users from the given group as participants to the given community.
media type | data type | description |
---|---|---|
application/json | GroupsVO (JSON) | Request JSON (example):
|
media type | data type | description |
---|---|---|
application/json | object (JSON) |
|
POST /social/community/addParticipants
Add participants to the given community.
media type | data type | description |
---|---|---|
application/json | AddParticipantsVO (JSON) | Request JSON (example):
|
media type | data type | description |
---|---|---|
application/json | object (JSON) |
|
- Available Since
- 1.3.0
POST /social/community/changeImage
Change the communitys's image
Accepted media types: PNG, JPG, JPEG.
- Available Since
- 1.3.0
media type | data type | description |
---|---|---|
application/json | Base64MediaVO (JSON) | Request JSON (example):
|
media type | data type | description |
---|---|---|
application/json | object (JSON) |
|
POST /social/community/create
Creates a new community
media type | data type | description |
---|---|---|
application/json | CommunityVO (JSON) | Request JSON (example):
|
media type | data type | description |
---|---|---|
application/json | object (JSON) |
|
- Available Since
- 1.3.0
GET /social/community/listCommunities
List alll communities.
- Available Since
- 1.3.0
name | type | description | constraints |
---|---|---|---|
limit | query | limit of records returned | required |
offset | query | the offset | required |
pattern | query | filter to search |
media type | data type | description |
---|---|---|
application/json | object (JSON) | Response List of JSON (example):
|
- Available Since
- 1.4.0
GET /social/community/listCommunitiesWithRelevance
List communities with relevance and ordenation type
- Available Since
- 1.4.0
name | type | description | default | constraints |
---|---|---|---|---|
limit | query | limit of records returned | required | |
offset | query | the offset | required | |
orderType | query | selected order to return registers | DEFAULT | "ASC" or "DEFAULT" or "DESC" or "NEWEST" or "OLDER" |
pattern | query | filter to search |
media type | data type | description |
---|---|---|
application/json | object (JSON) | Response List of JSON (example):
|
- Available Since
- 1.4.0
GET /social/community/listFavoriteCommunitiesWithRelevance
List favorite communities with relevance and ordenation type
- Available Since
- 1.4.0
name | type | description | default | constraints |
---|---|---|---|---|
limit | query | limit of records returned | required | |
offset | query | the offset | required | |
orderType | query | selected order to return registers | DEFAULT | "ASC" or "DEFAULT" or "DESC" or "NEWEST" or "OLDER" |
pattern | query | filter to search |
media type | data type | description |
---|---|---|
application/json | object (JSON) | Response List of JSON (example):
|
- Available Since
- 1.5.7
GET /social/community/listPagesWithComunities
Find fluig pages: send data query param
- Available Since
- 1.5.7
name | type | description | default | constraints |
---|---|---|---|---|
filter | query | REQUIRED filter |
||
internalPages | query | selected also internalPages when true | false | boolean |
isMobile | query | filter to search only mobile pages/comunities | false | boolean |
media type | data type | description |
---|---|---|
application/json | object (JSON) | This method just return HTTP 200 status, Object User |
- Available Since
- in 1.5.0
POST /social/community/new
Creates a new community
- Available Since
- in 1.5.0
media type | data type | description |
---|---|---|
application/json | CommunityVO (JSON) | Request JSON (example):
|
media type | data type | description |
---|---|---|
application/json | object (JSON) | Response List of JSON (example):
|
POST /social/community/notify
Registers the logged user to be notified about new interactions in the given community.
media type | data type | description |
---|---|---|
application/json | SocialVO (JSON) | Request JSON (example):
|
media type | data type | description |
---|---|---|
application/json | object (JSON) |
|
- Available Since
- 1.3.0
POST /social/community/removeGroups
Remove the users from the given group as participants to the given community.
- Available Since
- 1.3.0
media type | data type | description |
---|---|---|
application/json | GroupsVO (JSON) | Request JSON (example):
|
media type | data type | description |
---|---|---|
application/json | object (JSON) |
|
POST /social/community/request
Request participation in the community.
media type | data type | description |
---|---|---|
application/json | RequestParticipationVO (JSON) | Request JSON (example):
|
media type | data type | description |
---|---|---|
application/json | object (JSON) |
|
POST /social/community/stopNotify
Unregisters the logged user as a community's follower. The user will no longer be notified about new community interactions. NOTE: This method does NOT remove the user as participant.
media type | data type | description |
---|---|---|
application/json | SocialVO (JSON) | Request JSON (example):
|
media type | data type | description |
---|---|---|
application/json | object (JSON) |
|
POST /social/community/update
Updates a community
media type | data type | description |
---|---|---|
application/json | CommunityVO (JSON) | Request JSON (example):
|
media type | data type | description |
---|---|---|
application/json | object (JSON) | Response JSON (example):
|
GET /social/community/{alias}
Get a community by its alias
name | type | description |
---|---|---|
alias | path | REQUIRED the community's alias |
media type | data type | description |
---|---|---|
application/json | ExtendedCommunityVO (JSON) | Response List of JSON (example):
|
- Available Since
- 1.3.0
POST /social/community/changeStatus/{alias}
Change the community status. If the community is Active becomes Inactive, if the community is Inactive becomes Active.
- Available Since
- 1.3.0
name | type | description |
---|---|---|
alias | path | REQUIRED the community's alias |
media type | data type | description |
---|---|---|
application/json | object (JSON) |
|
- Available Since
- 1.3.0
GET /social/community/communitiesOrderFavorites/{genericId}
List communities ordered by favorites.
- Available Since
- 1.3.0
name | type | description | constraints |
---|---|---|---|
genericId | path | REQUIRED the user's generic identifier, can be (alias, idpId or userCode) |
|
limit | query | limit of records returned | required |
offset | query | the offset | required |
pattern | query | filter to search |
media type | data type | description |
---|---|---|
application/json | array of SocialVO (JSON) | Response List of JSON (example):
|
- Available Since
- 1.3.0
GET /social/community/communityMember/{alias}
Returns if logged user is community participant.
- Available Since
- 1.3.0
name | type | description |
---|---|---|
alias | path | REQUIRED the community's alias |
media type | data type | description |
---|---|---|
application/json | GenericVO (JSON) | Response List of JSON (example):
|
- Available Since
- 1.3.0
GET /social/community/enabled/{alias}
Returns if the community is active.
- Available Since
- 1.3.0
name | type | description |
---|---|---|
alias | path | REQUIRED the community's alias |
media type | data type | description |
---|---|---|
application/json | GenericVO (JSON) | Response List of JSON (example):
|
GET /social/community/image/{alias}
Returns the communitys's profile image based on its alias
name | type | description |
---|---|---|
alias | path | REQUIRED the communitys's alias |
media type | data type | description |
---|---|---|
application/octet-stream | object | A application/octet-stream with the image file |
- Available Since
- 1.4.0
GET /social/community/listModeratorsWithRelevance/{alias}
Return list moderators of community with relevance and order type
- Available Since
- 1.4.0
name | type | description | default | constraints |
---|---|---|---|---|
alias | path | REQUIRED the community's alias |
||
limit | query | limit the number of registers in the returned list. Default value 20 | required | |
offset | query | defines the first registry in the returned list. Default value 0 | required | |
orderType | query | selected order to return registers | DEFAULT | "ASC" or "DEFAULT" or "DESC" or "NEWEST" or "OLDER" |
pattern | query | User name used like filter. Empty value returns all users |
media type | data type | description |
---|---|---|
application/json | object (JSON) | Response List of JSON (example):
|
- Available Since
- 1.4.0
GET /social/community/listMyCommunitiesWithRelevance/{genericId}
List my communities or communities where social is participant with relevance and ordenation type
- Available Since
- 1.4.0
name | type | description | default | constraints |
---|---|---|---|---|
genericId | path | REQUIRED the user's generic identifier, can be (alias, idpId or userCode) |
||
limit | query | limit of records returned | required | |
offset | query | the offset | required | |
orderType | query | selected order to return registers | DEFAULT | "ASC" or "DEFAULT" or "DESC" or "NEWEST" or "OLDER" |
pattern | query | filter to search |
media type | data type | description |
---|---|---|
application/json | object (JSON) | Response List of JSON (example):
|
- Available Since
- 1.4.0
GET /social/community/listMyCommunitiesWithRelevanceByLogin/{login}
List my communities or communities where social is participant with relevance and ordenation type
- Available Since
- 1.4.0
name | type | description | default | constraints |
---|---|---|---|---|
login | path | REQUIRED User's login |
||
limit | query | limit of records returned | required | |
offset | query | the offset | required | |
orderType | query | selected order to return registers | DEFAULT | "ASC" or "DEFAULT" or "DESC" or "NEWEST" or "OLDER" |
pattern | query | filter to search |
media type | data type | description |
---|---|---|
application/json | object (JSON) | Response List of JSON (example):
|
- Available Since
- 1.4.0
GET /social/community/listParticipantsWithRelevance/{alias}
Get the participants of a community with relevance and ordenation type.
- Available Since
- 1.4.0
name | type | description | default | constraints |
---|---|---|---|---|
alias | path | REQUIRED the community's alias |
||
limit | query | limit of records returned | required | |
offset | query | the offset | required | |
orderType | query | selected order to return registers | DEFAULT | "ASC" or "DEFAULT" or "DESC" or "NEWEST" or "OLDER" |
pattern | query | filter to search |
media type | data type | description |
---|---|---|
application/json | object (JSON) | Response List of JSON (example):
|
- Available Since
- 1.5.9
GET /social/community/listPendingRequestsWithRelevance/{alias}
Get the users with pending request for a community with relevance and ordenation type.
- Available Since
- 1.5.9
name | type | description | default | constraints |
---|---|---|---|---|
alias | path | REQUIRED the community's alias |
||
limit | query | limit of records returned | required | |
offset | query | the offset | required | |
orderType | query | selected order to return registers | DEFAULT | "ASC" or "DEFAULT" or "DESC" or "NEWEST" or "OLDER" |
pattern | query | filter to search |
media type | data type | description |
---|---|---|
application/json | object (JSON) | Response List of JSON (example):[{
"id" : "1", //Community's id
"name" : "Community 01",//community's name
"description" : "Community 01 description", //community's description
"alias" : "community01", //community's alias
"type" : "COMMUNITY", //fixed
"tenantId" : "22", //tenant's id
"lastUpdate" : "10008520", //date of last time the community has been modified (in miliseconds)
"create" : "10008520", //date the community has been created (in miliseconds)
"numberParticipations" : "10", //number of users that participate of the community
"numberModerations" : "1", //number of the community's moderators
"hidden" : "false", //indicates if it is a hidden community
"privateContent" : "false", //indicates if community's content is private
"approvalRequired" : "true", //indicates if it is necessary approval to join the community
"admin" : "true", //indicates if the current user is community's administrator
"state" : "ACTIVE" //Indicates the status of the community (it can be "UNCONFIRMED", "ACTIVE", "BLOCKED" or "REMOVED")
}] |
- Available Since
- 1.3.0
GET /social/community/moderators/{alias}
List community moderators.
- Available Since
- 1.3.0
name | type | description | constraints |
---|---|---|---|
alias | path | REQUIRED the community's alias |
|
limit | query | limit of records returned | required |
offset | query | the offset | required |
media type | data type | description |
---|---|---|
application/json | array of SocialVO (JSON) | Response JSON (example):
|
- Available Since
- 1.3.0
GET /social/community/notifyList/{alias}
Returns users that are being notified about the interactions in the given community.
- Available Since
- 1.3.0
name | type | description | default | constraints |
---|---|---|---|---|
alias | path | REQUIRED the community's alias |
||
limit | query | limit the number of registers in the returned list | 10 | int |
offset | query | defines the first registry in the returned list | 0 | int |
media type | data type | description |
---|---|---|
application/json | array of UserVO (JSON) | Response List of JSON (example):
|
- Available Since
- 1.3.0
GET /social/community/participants/{alias}
Get the participants of a community.
- Available Since
- 1.3.0
name | type | description | default | constraints |
---|---|---|---|---|
alias | path | REQUIRED the community's alias |
||
limit | query | limit of records returned | required | |
offset | query | the offset | required | |
pattern | query | filter to search |
media type | data type | description |
---|---|---|
application/json | array of SocialVO (JSON) | Response List of JSON (example):
|
- Available Since
- 1.4.0
GET /social/community/relationStatus/{aliasCommunity}
Return the status relation between the logged user and community
- Available Since
- 1.4.0
name | type | description |
---|---|---|
aliasCommunity | path | community alias |
media type | data type | description |
---|---|---|
application/json | object (JSON) | Request JSON (example):
|
- Available Since
- 1.4.11
GET /social/community/v2/{alias}
Get a community by its alias
- Available Since
- 1.4.11
name | type | description |
---|---|---|
alias | path | REQUIRED the community's alias |
media type | data type | description |
---|---|---|
application/json | object (JSON) | Response List of JSON (example):
|
- Available Since
- 1.4.8
POST /social/community/{alias}/forceAllMembersWatch
Force all participants to watch the community
- Available Since
- 1.4.8
name | type | description |
---|---|---|
alias | path | community alias |
media type | data type | description |
---|---|---|
application/json | object (JSON) | List of users that has been forced to watch the community
(users that was previously watching the community won't be listed)
|
- Available Since
- 1.5.9
POST /social/community/accept/{communityAlias}/{requesterGenericId}
Accept a solicitation of a user to join a community.
- Available Since
- 1.5.9
name | type | description |
---|---|---|
communityAlias | path | REQUIRED Alias of the community |
requesterGenericId | path | REQUIRED Alias of participation requester |
media type | data type | description |
---|---|---|
application/json | object (JSON) | This method just return HTTP 200 status |
- Available Since
- 1.3.0
POST /social/community/addModerator/{communityAlias}/{genericId}
Add new moderator to community. Since 1.3.
- Available Since
- 1.3.0
name | type | description |
---|---|---|
communityAlias | path | REQUIRED the community's alias |
genericId | path | REQUIRED the user's generic identifier, can be (alias, idpId or userCode) |
media type | data type | description |
---|---|---|
application/json | object (JSON) |
|
- Available Since
- 1.3.0
POST /social/community/changeAdmin/{communityAlias}/{genericId}
Change community administrator.
- Available Since
- 1.3.0
name | type | description |
---|---|---|
communityAlias | path | REQUIRED the community's alias |
genericId | path | REQUIRED the user's generic identifier, can be (alias, idpId or userCode) |
media type | data type | description |
---|---|---|
application/json | object (JSON) |
|
- Available Since
- 1.4.11
GET /social/community/communitiesOrderFavorites/v2/{genericId}
List communities ordered by favorites.
- Available Since
- 1.4.11
name | type | description | constraints |
---|---|---|---|
genericId | path | REQUIRED the user's generic identifier, can be (alias, idpId or userCode) |
|
limit | query | limit of records returned | required |
offset | query | the offset | required |
pattern | query | filter to search |
media type | data type | description |
---|---|---|
application/json | object (JSON) | Response List of JSON (example):
|
GET /social/community/folder/{alias}/{feature}
Returns the id of the folder used as storage of the given feature of a given community.
name | type | description |
---|---|---|
alias | path | REQUIRED community's alias |
feature | path | REQUIRED (DOCUMENT | GALLERY_PHOTO | GALLERY_VIDEO | ARTICLE | FORM) |
media type | data type | description |
---|---|---|
application/json | SocialDocsVO (JSON) | Response JSON (example):
|
- Available Since
- 1.3.0
GET /social/community/imageBySize/{alias}/{size}
Returns the communitys's profile image based on its alias and size
- Available Since
- 1.3.0
name | type | description | constraints |
---|---|---|---|
alias | path | REQUIRED the communitys's alias |
|
size | path | REQUIRED image size. Possible values: 80|160|320|432|640|864|1060. |
required |
media type | data type | description |
---|---|---|
application/octet-stream | object | A application/octet-stream with the image file |
- Available Since
- 1.4.0
GET /social/community/isCommunityAdmin/{aliasCommunity}/{genericId}
Verify if user is community admin
- Available Since
- 1.4.0
name | type | description |
---|---|---|
aliasCommunity | path | community alias |
genericId | path | REQUIRED the user's generic identifier, can be (alias, idpId or userCode) |
media type | data type | description |
---|---|---|
application/json | object (JSON) | Request JSON (example):
|
- Available Since
- 1.4.0
GET /social/community/isCommunityModerator/{aliasCommunity}/{genericId}
Verify if teh logged user is community admin
- Available Since
- 1.4.0
name | type | description |
---|---|---|
aliasCommunity | path | community alias |
genericId | path | REQUIRED the user's generic identifier, can be (alias, idpId or userCode) |
media type | data type | description |
---|---|---|
application/json | object (JSON) | Request JSON (example):
|
- Available Since
- 1.4.11
GET /social/community/participants/v2/{alias}
Get the participants of a community.
- Available Since
- 1.4.11
name | type | description | default | constraints |
---|---|---|---|---|
alias | path | REQUIRED the community's alias |
||
limit | query | limit of records returned | required | |
offset | query | the offset | required | |
pattern | query | filter to search |
media type | data type | description |
---|---|---|
application/json | object (JSON) | Response List of JSON (example):
|
- Available Since
- 1.5.9
POST /social/community/reject/{communityAlias}/{requesterGenericId}
Reject a solicitation of a user to join a community.
- Available Since
- 1.5.9
name | type | description |
---|---|---|
communityAlias | path | REQUIRED Alias of the community |
requesterGenericId | path | REQUIRED Alias of participation requester |
media type | data type | description |
---|---|---|
application/json | object (JSON) | This method just return HTTP 200 status |
- Available Since
- 1.3.0
POST /social/community/removeModerator/{communityAlias}/{genericId}
Removes community moderator
- Available Since
- 1.3.0
name | type | description |
---|---|---|
communityAlias | path | REQUIRED the community's alias |
genericId | path | REQUIRED the user's generic identifier, can be (alias, idpId or userCode) |
media type | data type | description |
---|---|---|
application/json | object (JSON) |
|
- Available Since
- 1.3.0
POST /social/community/removeParticipant/{communityAlias}/{genericId}
Removes community participant.
- Available Since
- 1.3.0
name | type | description |
---|---|---|
communityAlias | path | REQUIRED the community's alias |
genericId | path | REQUIRED the user's generic identifier, can be (alias, idpId or userCode) |
media type | data type | description |
---|---|---|
application/json | object (JSON) |
|
GET /social/community/comunity/participant/{communityId}/{pattern}
Get the participants of a community.
name | type | description | constraints |
---|---|---|---|
communityId | path | REQUIRED the community's id |
long |
pattern | path | REQUIRED filter to search |
|
limit | query | limit of records returned | required |
offset | query | the offset | required |
media type | data type | description |
---|---|---|
application/json | array of SocialVO (JSON) | Response List of JSON (example):
|