JSON API: Return Whitelisted CPTs when querying for 'all'

Currently when querying for 'all' via the get posts endpoint only `post` and `page` types are returned; CPTs whitelisted by the `rest_api_allowed_post_types ` filter can be queried for explicitly by passing the type in via query params however are not included in "all".

This change bumps the minor version of the get posts endpoint to 1.1 and returns all whitelisted CPTs along with `post` and `page` when "all" is passed in as the type.
Can you add in braces to this if/else block?