Open dorado18 opened 6 years ago
The Swordfish Basic Web Client only supports URLs that are typically found in Redfish and Swordfish, so it does not currently support URLs that include constructs like "Members('4FDB0851-EE73-C655-0D13-A2A7F8A4F7AA')". The DMTF is expected to clarify the URL requirements in the Redfish specification soon in a way that will not allow the "Members()" construct.
Although most people prefer the readability inherent with the key as a segment approach. It would be a bad thing to not allow the parenthesized key form for multiple reasons: 1) There is existing code that uses the parenthesized key form. 2) The key as segment style only works for simple keys. If a resource is defined with a complex key, the parenthesized style must be used. 3) It is a somewhat common practice to define keys using common names. It is possible that the key value and a property or action name could collide. The parenthesized style avoids that conflict. 4) The form of a URL is left to the server that publishes them. They should be treated as opaque. Specifying one form or the other goes counter to that. It is best to leave the key style used to the server implementation.
The Swordfish Basic Web Client code could be extended to include support for the more complex form, if someone contributes code that makes it happen without impacting the current functionality. However, it would be wise to wait until the pending Redfish URL clarifications are settled.
With the exception of the URL to the ServiceRoot (or ServiceContainer), the Swordfish Basic Web Client must not create URLs to resources. In all other cases resource URLs should be discovered and used as opaque strings. It is allowed to append URL segments that identify property, navigation property, action, or function names to the URL of a resource. It is a bug if the Swordfish Basic Web Client is doing more than.
This is an enhancement request for the basic web client.
Hello,
Our Swordfish service returns the following xml response for a StorageService instance:
But the the navigation links StorageGroups, EndpointGroups, etc are not clickable when presented in the browser and so we are unable to continue exploring the model.
Tested with latest Firefox, Chrome and Chromium. Below is an image with Chromium.