<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
I just ran this using my restclient utility, and the metadata is
being reported correctly.<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<edmx:Edmx
xmlns:edmx=<a class="moz-txt-link-rfc2396E" href="http://docs.oasis-open.org/odata/ns/edmx">"http://docs.oasis-open.org/odata/ns/edmx"</a>
Version="4.0"><br>
<edmx:Reference
Uri="/redfish/v1/schema/AccelerationFunction_v1.xml"><br>
<edmx:Include Namespace="AccelerationFunction"/><br>
<edmx:Include
Namespace="AccelerationFunction.v1_0_0"/><br>
<edmx:Include
Namespace="AccelerationFunction.v1_0_1"/><br>
<edmx:Include
Namespace="AccelerationFunction.v1_0_2"/><br>
</edmx:Reference><br>
<br>
I think Joseph is correct, the problem is a shell expansion issue.<br>
<br>
<div class="moz-cite-prefix">On 1/20/20 9:38 AM, Joseph Reynolds
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:cd830dd2-1add-5bb4-db60-50f186abe310@linux.ibm.com">On
1/20/20 4:07 AM, Ratan Gupta wrote:
<br>
<blockquote type="cite">
<br>
Hi James,
<br>
<br>
I was looking at the current master metadata redfish url
implementation and seems that is not correct.
<br>
<br>
Currently redfish/v1 and redfish/v1/$metadata is giving the same
service root data(service root).
<br>
<br>
curl -k -H "X-Auth-Token: $bmc_token" -X
GEThttps://${bmc}/redfish/v1
<br>
curl -k -H "X-Auth-Token: $bmc_token" -X
GEThttps://${bmc}/redfish/v1/$metadata
<br>
</blockquote>
<br>
I wonder if $metadata is being expanded as a shell variable.
The shell expands un-set variables to the empty string and you get
the result you are seeing. If this is happening to you, you could
quote your command in one of these ways (but be careful not to
quote the ${bmc} variable):
<br>
<br>
curl -k -H "X-Auth-Token: $bmc_token" -X
GEThttps://${bmc}/redfish/v1/\$metadata
<br>
<br>
-or-
<br>
<br>
curl -k -H "X-Auth-Token: $bmc_token" -X
GEThttps://${bmc}'/redfish/v1/$metadata'
<br>
<br>
<br>
Also, note that URI /redfish/v1/$metadata does not require
authentication, so the X-Auth-Token header is not needed.
<br>
<br>
- Joseph
<br>
<br>
<blockquote type="cite">I am hoping the redfish/v1/$metadata
should return the following data
<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/openbmc/bmcweb/blob/master/static/redfish/v1/%24metadata/index.xml">https://github.com/openbmc/bmcweb/blob/master/static/redfish/v1/%24metadata/index.xml</a>
<br>
<br>
Ratan
<br>
<br>
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<font color="#1F497D"><font face="Century Gothic">Johnathan Mantey<br>
<small>Senior Software Engineer</small><br>
<big><font color="#555555"><small><b>azad te</b><b>chnology
partners</b></small><br>
<small><font color="#1F497D"><small>Contributing to
Technology Innovation since 1992</small></font><small><br>
<font color="#1F497D">Phone: (503) 712-6764<br>
Email: <a href="mailto:johnathanx.mantey@intel.com">johnathanx.mantey@intel.com</a></font></small><br>
<br>
</small></font></big></font></font> </div>
</body>
</html>