0 Replies Latest reply: Apr 30, 2014 6:17 AM by 2644841 RSS

    Configure Coherence REST api to return JSON by default?

    2644841

      I am using the Coherence REST API  against Coherence 3.7.1 as detailed here: Introducing Coherence Rest and Building Your First Coherence REST Application

       

      Whenever I attempt to access a URL with a key I get a 404 back unless I append .json to the URL e.g.

      http://localhost:9998/dist-cache/0120250663

      returns a 404. But

      http://localhost:9998/dist-cache/0120250663.json

      Returns the object in JSON format.

       

      Is there any way to configure the REST api to return JSON by default so that the .json does not need to be appended to the URL?