JBoss.orgCommunity Documentation
Name | Service URL | Location | Description |
---|---|---|---|
ActivitiesRestService | {restContextName}/{portalName}/social/activities |
Maven groupId: org.exoplatform.social ArtifactId: exo.social.component.service | Provide REST services for activity applications: like/unlike; comment; delete activity. |
API:
Name | Service URL Endpoint | Parameters | Expected Values | Description |
---|---|---|---|---|
destroyActivity | {restContextName}/{portalName}/social/activities/destroy/{activityId}.{format} |
portalName activityId format |
String String String: json or xml | Destroy activity and get the JSON/XML format. |
showLikes | {restContextName}/{portalName}/social/activities/{activityId}/likes/show.{format} |
portalName activityId format |
String String String: json or xml | Show the list of likes by activityId and return the JSON/XML format. |
updateLike | {restContextName}/{portalName}/social/activities/{activityId}/likes/update.{format} |
portalName activityId format |
String String String: json or xml | Update the list of likes by the JSON/XML format. |
destroyLike | {restContextName}/{portalName}/social/activities/{activityId}/likes/destroy/{identity}.{format} |
portalName activityId identityId format |
String String String String: json or xml | Destroy like by identityId and get the JSON/XML format return format. |
showComments | {restContextName}/{portalName}/social/activities/{activityId}/likes/show.{format} |
portalName activityId format |
String String String: json or xml | Show the comment list by the JSON/XML format. |
updateComment | {restContextName}/{portalName}/social/activities/{activityId}/likes/update.{format} |
portalName activityId format |
String String String: json or xml | Update the comment by the JSON/XML format. |
destroyComment | {restContextName}/{portalName}/social/activities/{activityId}/comments/destroy/{commentId}.{format} |
portalName activityId commentId format |
String String String String: json or xml | Destroy comments and return the JSON/XML format. |
Example:
http://localhost:8080/rest-socialdemo/socialdemo/social/activities/s08d397dg6/likes/destroy/abc.json