Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-474

PUT and POST uris and namespaces are inconsistent

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • Helium
    • None
    • restconf
    • None
    • Operating System: Linux
      Platform: PC

    • 1012

    Description

      REST and POST should deal with the same URIs and expect data formatted in the same ways. Currently, they seem to treat namespaces differently (I guess; I haven't actually be able to figure out what the actual behavior is)

      The API as presented in the swagger API explorer is reasonably, sane, telling me I can either POST or PUT into URIs such as /config/toaster:toaster.

      However, only PUT actually works here, and the semantics are (as correct for PUT) to wipe out everything below that URI and replace it with the new PUT data.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jgloncak Jozef Gloncak
            readams Rob Adams
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: