I am trying to get the json data of my posts. I have tried with both v1.2.4 and v2 of the REST API plugin.
If I enter
http://example.com/wp-json/posts?type=magazine
or
http://example.com/wp-json/posts?type=magazine&filter[posts_per_page]=-1
just an empty array is returned.
If I enter
http://example.com/wp-json/posts?type=magazine&filter[posts_per_page]=80
(or any number between 1 and 80)
all data appear just fine.
Is there a limit? I need to get ALL the posts from any custom post type.