added pag REST example