Added some prototypes for REST api