freeconf/restconf

RPC operations in wrong location

pdumais opened this issue · 4 comments

For example,


POST /restconf/operations/example-ops:reboot HTTP/1.1
      Host: example.com
      Content-Type: application/yang-data+json
      {
        "example-ops:input" : {
          "delay" : 600,
          "message" : "Going down for system maintenance",
          "language" : "en-US"
        }
      }

does not work. We get an error saying "Expected format: http://server/restconf[=device]/operation/module:path"
But the RFC does not mention anything about "=device". Also, looking at server.go#L146, it seems that "operations" is simply not implemented and the error message is misleading

I can confirm that this fixes the issues I initially saw.
Any chance this can get merged?

except for content types, all fixed on compliance branch. I'll open a separate issue for content types