Added some rest endpoints