[NETCONF-882] Allow restconf base URI to be configurable for streams API Created: 02/Jun/22  Updated: 02/Jun/22

Status: Open
Project: netconf
Component/s: restconf-nb
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Medium
Reporter: Valentin Mayamsin Assignee: Valentin Mayamsin
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

For example request:

curl -X GET http://localhost:8181/rests/data/ietf-restconf-monitoring:restconf-state/streams

Response:

...
},
"access": [

{ "encoding": "JSON", "location": "http://localhost:8181/*rests*/notif/notification-stream/ietf-netconf-notifications:netconf-session-start/JSON" }

,

{ "encoding": "XML", "location": "http://localhost:8181/*rests*/notif/notification-stream/ietf-netconf-notifications:netconf-session-start" }

],
"description": "Generated when a NETCONF server detects that a\nNETCONF session has started. A server MAY generate\nthis event for non-NETCONF management sessions.\nIndicates the identity of the user that started\nthe session.",
"name": "netconf-session-start",
"replay-support": true
},
...

Introduce configuration option to allow restconf base URI to be configurable:

#example of restconf8040 configuration
#Default values:
#maximum-fragment-length=0
#heartbeat-interval=10000
#idle-timeout=30000
#ping-executor-name-prefix=ping-executor
#max-thread-count=1
#use-sse=true
location-path-prefix=restconf/v1


Generated at Wed Feb 07 20:16:09 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.