Using the endpoint:
GET https://mydspace.org/rest/communities/
I seem to only get 100
results returned. I can't see any options in the documentation to return more.
How do I do this?
Most of the DSpace rest endpoints support a limit parameter. I suppose that there is some maximum size that you can request, but the limit should be able to go higher than 100.
If you still are unable to retrieve everything in one request (or if you timeout), you can paginate through the results in your code.
There is an endpoint (in DSpace 6) that will allow you to retrieve the ids and handles for the full hierarchy.