I think we need a new test for getting taxonomy terms via the REST API.
When you try to get a taxonomy term with an "Accept" header of application/json
. you get the following error:
{"message":"Not Acceptable.","supported_mime_types":["text\/html","application\/vnd.drupal-ajax","application\/vnd.drupal-dialog","application\/vnd.drupal-modal"]}
This has been tested on beta 7. Of course rest has been enabled for taxonomy terms and access has been granted. One must clear the cache after enabling rest for entities. taxonomy/term/{tid}
produces the error but node/{nid}
works with application/json
.
Suggested commit message:
Issue #2449143 by damiankloip, Wim Leers, dawehner, Tybor: REST views specify HTML as a possible request format, so if there is a "regular" HTML view on the same path, it will serve JSON