Allow dataPOST() to control Etag/Last-Modified 56/109156/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 6 Dec 2023 07:58:28 +0000 (08:58 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 6 Dec 2023 11:09:29 +0000 (12:09 +0100)
commit6abc1687ad1712848535a7be07d3dce323afd018
treedf9232cedb6af12fcf8e43f97f854d4f46c44f65
parent55ba3057616c1a735065ddda1570901dc53a6e5a
Allow dataPOST() to control Etag/Last-Modified

In Create Resource Mode, each RestconfStrategy should be able to
communicate ETag and Last-Modified headers.

Retrofit DataPostResult.CreateResource to implement
ConfigurationMetadata and propagate its content when generating the HTTP
response.

JIRA: NETCONF-1207
Change-Id: I6b4440f018c17a41887fecc19b220542f360e2c6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/jaxrs/JaxRsRestconf.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/api/DataPostResult.java
restconf/restconf-nb/src/main/java/org/opendaylight/restconf/server/api/RestconfServer.java