コード例 #1
0
def add_users_to_group():
    in_args, fields, body = parse_and_print_args()
    res = Database_op.insert_group("usergroups", body)
    return json.dumps("User added successfully"), 200, {
        "content-type": "application/json; charset: utf-8"
    }
コード例 #2
0
def create_group():
    in_args, fields, body = parse_and_print_args()
    res = Database_op.insert_group("usergroups", body)
    return json.dumps("Group Creation Successful"), 200, {
        "content-type": "application/json; charset: utf-8"
    }