Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-12272

ReST API for meta-data doesn't support JSON

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 25.0.0
    • Fix Version/s: Meridian-2019.1.0, 25.1.0
    • Component/s: REST
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Sprint:
      Horizon 2019 - September 11th, Horizon 2019 - September 18th

      Description

      While trying to figure out how the new meta-data DSL feature works, I found that the meta-data end-points on the ReST API v2 are not working with JSON.

      Interestingly, the whole ReST API v2 defaults to JSON when the accept header is not specified (which is different from the v1 API, which is XML).

      Only the meta-data end-points defaults to XML, the code mentions that JSON is an option, but the data is not shown (you get an empty array even if there are meta-data entries). This can be easily reproducible after setting the Accept header to be "application/json".

        Attachments

          Activity

            People

            • Assignee:
              cpape Christian Pape
              Reporter:
              agalue Alejandro Galue
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: