Updated rest API plugin