Hello, I have made a collection then feed the data and then allowed publi APIs and working fine but when i came bacck and add more data in my collection they are not accessible on API but i can find them in collection.
I have tried to make the API unaccessible then accessible but still no changes any one who can help me?
okay i am using localhost for strapi but if you have time we can try to connect via anyDesk and check the real prolem I am new to this platform as I even dont know how to get that meta obj
In the meta there are pageSize and total keys. pageSize: 25 means that the API will return only 25 results back, and total is the number of your total data inside your collection.
Now, if you have more than 25 items in your collection, then you will receive the first 25 and then you will need to ask for the second page in order to get the next 25 items, that is from item number 25 through 50.
I suggest you check the Pagination section in Strapi’s documentation.
There are two ways to implement what you want based on your total data. Either change the page and get responses per 25, or change the pageSize and get all results at once.
page option: you want something like this http://localhost:1337/api/{collection-type_plural}?pagination[page]=X where X is the number of the page, 1,2,3…N
pageSize option: you want something like this http://localhost:1337/api/{collection-type_plural}?pagination[page]=1&pagination[pageSize]=Y. Where Y is the number of results you want to get in the response, 25, 50, 91, 100 etc. Please note that Strapi’s default maximum limit for pageSize is 100.
cheers, thanks a lot but dont they have away to just pull out all data at one go as i am working on so many data and starting to think this is not good or is there a best reason for them to do it like this