Added pagination endpoints to API