-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
property apiDocumentation
is undefined
#259
Comments
I see how this may be confusing although it's technically by design. See, the @base <https://sources.wikibus.org>
</book/1540> hydra:apiDocumenation </api> . Hydra however delivers that as HTTP link header and this is why you don't get the value back from the getter. I suppose it could be overloaded by Alcaeus to first try an explicit value of |
That makes sense. I think that there should be some built-in way to access a resources api documentation though (without needing to manually load it via the HTTP link header). Does that exist today? |
Indeed there is. See Accessing all API Documentations This should be enough in the simple app. I realise however that this may be a little awkward in more complex scenarios. For example an application retrieving resources from multiple APIs will result in multiple objects in the I will implement as proposed above to override |
Released in 1.4.0 I also figured that the linked docs section was kinda hidden so I moved it to the API Documentation page alongside a new paragraph for the change at hand |
Meh, not so fast. I got punished for doing unit test but not integration. Re tpluscode/rdfine#183 Gotta update to 2.0 for a proper fix. Went for a major version because of breaking change upstream |
Given this basic function:
I'd expect to be able to reference the api documentation in this way. However, apiDocumentation accessed via the
apiDocumentation
property on a resource is alwaysundefined
.The text was updated successfully, but these errors were encountered: