Closed gauravbrills closed 9 years ago
also is it hf:foo which is causing the issue checked in chrome that gives an error as it treats hf as the urn . Also it seems to be an error with curie namespaces as without the curie namespace hf things work well any idea @mikekelly or @olivergierke .I am rendering it via spring data rest
This is not a browser bug, but the representation missing the curies. I think we fixed a few bus in that area in the recent releases. You might wanna check you use the latest and report a bug in our JIRA if the representation still looks the same.
I am as of now using
thanks for clearing this up @olivergierke
@mikekelly - Thinking twice about this, isn't what's shown above valid HAL and thus should work in the browser. I agree that the curies could be listed in the root _links
block as this would prevent them from occurring multiple times. Still hf:foo
should be resolvable, shouldn't it?
@mikekelly @olivergierke can the issue be reopened if this is a browser issue (if a consensus has bee reached).So then I shall close the corresponding issue raised in the spring data rest jira https://jira.spring.io/browse/DATAREST-626.
I overhauled the curie support in Spring HATEOAS so that should be resolved no. About to be released with 0.19 and Spring Data REST 2.4.0 GA in a few days respectively.
@mikekelly i don't think CURIES should be required by hal browser...maybe sometimes we haven't yet got around to them :( and now we can't display our HAL in latest hal browser cause it is requireing curies
Hi I am invoking my service like http://localhost:8080/foos?page=1&size=1 from HAL browser which give me an output like
the same does nto render and gives me an error Uncaught Error: URNs do not have any generally defined hierarchical components in console can anyone let me know what I am doing wrong as my api follows hal .The same works fine without curie namespaces in the embedded section seems to be a bug with the Uri.js
UPDATE @olivergierke curies are coming but inside the _embedded resource as u have also said that seems to cause the issue.Have updated the spring data ticket https://jira.spring.io/browse/DATAREST-626 with the response