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

Restconf can not support create resource by restconf/data

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Medium
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Follow the rfc8040, we can create resource by restconf/data to replace retconf/data.

      for example:

      POST /restconf/data HTTP/1.1

      Host: example.com

      Content-Type: application/yang-data+json   

       

      { "example-jukebox:jukebox" : {} }   

       

      If the resource is created, the server might respond as follows:

      HTTP/1.1 201 Created

      Date: Thu, 26 Jan 2017 20:56:30 GMT

      Server: example-server

      Location: https://example.com/restconf/data/example-jukebox:jukebox

      Last-Modified: Thu, 26 Jan 2017 20:56:30 GMT

      ETag: "b3a3e673be2"   

       

      But actually it returns:

      <html>

      <head>

           <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>

           <title>Error 404 Not Found</title>

      </head>

      <body>

            <h2>HTTP ERROR 404</h2>

            <p>Problem accessing /restconf/data/ Reason: <pre> Not Found</pre> </p>

      </body>

      </html>   

       

      So are we going to implement this way?

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            wsx25289 wang senxiao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: