Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-1222

Improve error path for list items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 7.0.0
    • None
    • None

      Invoke POST at http://localhost:8181/rests/data/network-topology:network-topology with payload:

      {
          "topology": [
              {
                  "topology-id": "restconf"
              }
          ]
      }

      First time we expect success, the second time 409 error, we get:

      {
          "errors": {
              "error": [
                  {
                      "error-tag": "data-exists",
                      "error-message": "Data already exists",
                      "error-path": "/network-topology:network-topology",
                      "error-type": "protocol"
                  }
              ]
          }
      }

      The error path is not complete, we expect "/network-topology:network-topology/topology=restconf".

            yaroslav.lastivka Yaroslav Lastivka
            ivanhrasko Ivan Hrasko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: