add rest style api