How to retrive all the issues with the Rest API?

We are trying to load all the issues to our data warehouse to do data analysis. And we used to do that via search API without the jql parameter and we could get what we want, but it is not working now.

curl --request GET \
--url '' \
--user 'username:token' \
--header 'Accept: application/json'

Does anyone know what is wrong here? And are there any other ways to do this?
Thank you!

Maybe try just: ORDER BY rank in the JQL parameter?