add favorites api to rdoc