add a metadata section in api call
basic pagination when all data is sent from api route.