Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-1257

Support for application/xml Content-Type

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Medium Medium
    • New Delhi Release
    • None
    • CPS-Core-REST
    • None

      CPS REST interface today Accepts only application/json format. The configuration from the Netconf device is read in the XML format and only having the yang schema allows to properly convert such XML into JSON (i.e. known problem of conversion of XML node(s). CPS has access to such schema, so can do properly the conversion. For the "actor" that receives the configuration in the XML format, wants to push such configuration to CPS, and has no access to the YANG schema, it is impossible today to convert such XML config to JSON format acceptable by CPS. On the other hand, if such an actor would have access to YANG schema, it is possible to write a converter on the client's side, however, such logic should be present in the CPS, which holds the yang schemas and could do the such conversion automatically.

      The proposal is to support application/xml Content-Type for the endpoint that modifies the configuration of the anchor.

      That story is about data creation only

            michaljagiellotmpl michaljagiellotmpl
            rajewluk Lukasz Rajewski
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: