add REST method