Get all records of module using REST API V8


I am trying to get all leads module records using rest API v8 but it return only 20 records. I have pass page number and page size but it still return 20 records only.

uri: '[number]=3&page[size]=50',

Is there any way to get all records.