I am trying the following and get a 502 Bad Gateway response:
curl -k https://devnetsandboxiosxe.cisco.com:443/restconf/data/ietf-interfaces:interfaces/interface=GigabitEthernet1 -u admin:C1sco12345 --header 'Accept: application/yang-data+json'
<html...