Set up the rest and configure pagination