[addressess #70535966]1) updated route to api call 2)fix bug related to handling the pagination