Added api function to get all activities