REST APIs: add pagination support

Change-Id: Ia84075df83e1cd52d5ef7141d0f5ba86faf79a7a
Merge "REST APIs: add pagination support"