Add deploy support to REST API