-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Are URI fragments supported? #119
Comments
Sorry, I fat-fingered the submit button too quickly. From the Redfish specification:
I'm writing a Redfish client with a fragment reference, but I seem to be getting back the full JSON resource and not the properties referenced by the fragment. Does libredfish support extracting fragments right now? |
If you use the redpath APIs then yes it does. If you use just the URI based API's then no it does not take the fragment into account. |
If you pass the fragment to getPayloadForPathString as the string value then it should return only the fragment you are interested in. |
Hmm, we're mostly using I have a hackaround in our own fork of libredfish where I've just hacked |
I can see it being useful. Wouldn't be that hard to have getUriFromService parse the URI pull the fragment out and pass it to getPayloadForPathString |
Sounds good, I'll send up a PR with this implementation when I get the chance. It'll just be cleaning up our hacked version to use getPayloadForPathString. |
Taking another look at this, does the Redpath API conform to the JSON Pointer standard RFC6901 that is referenced by the Redfish Spec Section 6.1.1. URIs?
The example in the standard is given as:
From my understanding of Redpath, I don't think Just wanted to confirm this since I'll probably look to implementing the feature without Redpath if this is the case. |
No description provided.
The text was updated successfully, but these errors were encountered: