Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
Allows a manager to add/remove users to the manager group, GET will return a manager's users
Possible Methods

GET POST DELETE - Note POST does not work currently because a manager can only touch members in their comm, of which you can't see people to add to your group

Arguments

n/a

JSON Object
Code Block
{
	String user_id; //id of user to add to community_id
}

...

Code Block
curl -b cookies.txt -X GET "http://localhost:8185/manager/community" > response.txt
curl -b cookies.txt -X POST -d '{"user_id":"5357cc8be4b0a329baa475bf"}' "http://localhost:8185/manager/community" > response.txt
curl -b cookies.txt -X DELETE -d '{"user_id":"5357cc8be4b0a329baa475bf"}' "http://localhost:8185/manager/community" > response.txt

...

Info
curl -b cookies.txt -X POSTDELETE -d '{"user_id":"5357cc8be4b0a329baa475bf"}' "http://localhost:8185/manager/community" > response.txt

 

Code Block
 {
    "response": {
        "action": "Manager/Community",
        "success": true,
        "message": "AddedRemoved user tofrom manager group successfully",
        "time": 0
    }
}