Crafter Social API¶
The context for this API is /crafter-social/
, please prefix the API URLs with this context.
Note
All request in this API require the user to be authenticated with the following steps:
Send a
POST
request to the/crafter-social/crafter-security-login
endpoint with theusername
andpassword
parametersInclude the cookies set in the response of the login in later requests
Besides setting the authentication cookies the login response also provides the user’s information:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | {
"ticket":"0489ca78-cd96-46c2-bc96-c1ea1fa4db6f",
"profile":{
"username":"admin",
"password":null,
"email":"admin@example.com",
"verified":false,
"enabled":true,
"createdOn":1554832283831,
"lastModified":1554834126479,
"tenant":"default",
"roles":[
"SOCIAL_SUPERADMIN",
"PROFILE_SUPERADMIN"
],
"attributes":{
"socialContexts":[
{
"name":"Default",
"id":"f5b143c2-f1c0-4a10-b56e-f485f00d3fe9",
"roles":[
"SOCIAL_ADMIN",
"SOCIAL_MODERATOR",
"SOCIAL_USER"
]
}
]
},
"failedLoginAttempts":0,
"lastFailedLogin":null,
"id":"5cacdb9b386f920d482a5ad4"
},
"remembered":false
}
|
Security Actions¶
Profile Cache¶
User Generated Content¶
Comments¶
- Create Comment
- Update Comment
- Delete Comment
- Get Comment
- Search Comments
- Update Comment Attributes
- Delete Comment Attributes
- Update Comment Flags
- Delete Comment Flag
- Get Comment Flags
- Moderate Comment
- Get Comments By Moderation Status
- Count Comments By Moderation Status
- Get Flagged Comments
- Count Flagged Comments
Social Contexts¶