Get Comment Flags
Returns all the flags for the given comment.
Resource Information
This service uses the tomcat application on port 8080 by default.
The context for this API is /crafter-social
, please prefix the API URLs with this context.
HTTP Verb
|
GET
|
URL
|
/api/3/comments/:id/flags |
Response Formats
|
JSON |
Parameters
Name
|
Type
|
Required
|
Description
|
---|---|---|---|
context
|
String
|
✓
|
The ID of the Social Context
|
id
|
String
|
✓
|
The ID of the comment
|
Example
Request
GET .../api/3/comments/59678d3f300426156e21df50/flags?context=f5b143c2-f1c0-4a10-b56e-f485f00d3fe9
Response
Status 200 OK
1[
2 {
3 "reason": "Contains offensive language",
4 "userId": "59667e8abd4787992596ba6b",
5 "_id": "5967e35f300426156e21df58"
6 }
7]
Responses
Status
|
Location
|
Response Body
|
---|---|---|
200
|
See example above.
|
|
401
|
{ "message" : "User must be logged in" } |
|
403
|
{ "message" : "Current subject does not have
permission to execute global action ..." }
|
|
500
|
{ "message" : "Internal server error" } |