Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group API #195

Closed
wants to merge 1 commit into from
Closed

Group API #195

wants to merge 1 commit into from

Conversation

ariesclark
Copy link
Member

@ariesclark ariesclark commented Dec 1, 2022

-snip- Moved to #198

@ariesclark ariesclark added Type: Enhancement This will **improve** existing or **add** something new Priority: High High priority, this ideally needs to be fixed first Status: In Progress This is being worked on... labels Dec 1, 2022
@ariesclark ariesclark changed the title wip: group api Group API Dec 1, 2022
@Miner28
Copy link
Collaborator

Miner28 commented Dec 1, 2022

POST /feedbacks/group/<group-id>

{
   "type":"report",
   "reasons":[
      "inappropriate",
      "abusive_disruptive",
      "malicious",
      "hateful"
   ],
   "locations":[
      "group_name",
      "group_description",
      "image_banner_gallery_icon",
      "group_user_behaviour"
   ],
   "description":"a"
}

RESPONSE

{
   "id":"feedback_<uuid>",
   "type":"report",
   "reasons":[
      "inappropriate",
      "abusive_disruptive",
      "malicious",
      "hateful"
   ],
   "locations":[
      "group_name",
      "group_description",
      "image_banner_gallery_icon",
      "group_user_behaviour"
   ],
   "description":"Report comment",
   "commenterId":"usr_<uuid>",
   "commenterName":"<displayname>",
   "contentId":"grp_<uuid>",
   "contentType":"group",
   "contentName":"test",
   "tags":[
      
   ]
}

PUT /groups/<group-id>/requests/<usr-id>

{
  "action":"accept" | "reject"
}

ACCEPT RESPONSE

{
    "success": {
        "message": "Successfully accepted <display-name> request.",
        "status_code": 200
    }
}

REJECT RESPONSE

{
    "success": {
        "message": "Successfully rejected <display-name> request.",
        "status_code": 200
    }
}

@Foorack
Copy link
Member

Foorack commented Dec 1, 2022

Superseded by #197

Information moved to #198

@Foorack Foorack closed this Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High High priority, this ideally needs to be fixed first Status: In Progress This is being worked on... Type: Enhancement This will **improve** existing or **add** something new
Development

Successfully merging this pull request may close these issues.

3 participants