added more rest api implementation