2 Replies Latest reply on Apr 24, 2015 5:37 AM by element14_Perks

    Minor discrepancy in the documentation

    kybuliak

      Hi,

       

      Firstly, let me thank you for the API. Even though I am just a hobbyist, it saves my time looking up parts I need.

       

      I run into a problem whereby I was trying to get a response in JSON format. I couldn't get it working. The response was:

       

      Http Code: 500

      {:content_encoding=>"gzip",

      :content_type=>"application/json;charset=UTF-8",

      :date=>"Wed, 20 Aug 2014 09:53:06 GMT",

      :server=>"Mashery Proxy",

      :vary=>"Accept-Encoding,User-Agent",

      :x_mashery_responder=>"prod-j-worker-eu-west-1b-19.mashery.com",

      :x_powered_by=>

        "Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5",

      :content_length=>"108",

      :connection=>"keep-alive"}

      {"Fault":{"Code":{"Value":"axis2ns142885:Client"},"Reason":{"Text":{"lang":"en-US"}},"Detail":null}}

       

      The same request but with XML format response worked. The issue with JSON is that the field resultsSettings.refinements.filters is mandatory unlike when asking for XML response. I think it is a minor bug in the API rather than the documentation issue.

       

      Thanks.

       

      Peter