Uploaded image for project: 'projectdoc Web API Extension'
  1. projectdoc Web API Extension
  2. PDEXWAPI-54

Representation of XML Fragments in REST Responses

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Blocker
    • 9.0.0
    • 8.0.2
    • None
    • None
    • api

    Description

      The returned values in representations, for properties and sections, are now strings. As a consequence, dependent on the requested format (JSON or XML), the returned value for property values and section contents is now the escaped sequence of characters.

      The XML response: <p class="abc"> ...

      The JSON response: "<p class=\"abc\"> ..."

      This is a breaking change for the content of a section in XML and JSON format. While the handling of JSON is now easier, the handling of XML is a little harder (requiring to render the fragment to valid HTML). But since the namespace handling was broken here, too, it is now cleaner.

      Maybe we implement another approach for handling XML responses in the future. Currently there is no apparent demand of the XML interface to the REST services (the XML version is still supported and is now consistent over all values, but lacks namespaces and therefore handles XML/HTML fragments as strings).

      Attachments

        Issue Links

          Activity

            People

              robert.reiner Robert Reiner
              robert.reiner Robert Reiner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: