Details
-
Bug
-
Status: Resolved
-
Medium
-
Resolution: Won't Do
-
Magnesium
-
None
-
None
Description
RPC with no input arguments can't be invoked using apidocs explorer.
An attempt to do so will result in HTTP 415 (with no payload)
This is equivalent cURL:
curl -v 'http://localhost:8181/restconf/operations/jsonrpc:force-reload' -H 'Accept: application/json' -H 'Content-Type: text/plain;charset=UTF-8' -H 'Authorization: Basic YWRtaW46YWRtaW4=' --data ''
But this one works
curl -v 'http://localhost:8181/restconf/operations/jsonrpc:force-reload' -H 'Accept: application/json' -H 'Content-Type: application/json' -H 'Authorization: Basic YWRtaW46YWRtaW4=' --data ''
Seems like 'Content-Type: text/plain;charset=UTF-8' header is causing issue.