Git Product home page Git Product logo

Comments (4)

jdeniau avatar jdeniau commented on August 30, 2024

The API we are using returns hydra:members instead of members. I think the two approach are possibles, and may vary depending on which output you choose. (or maybe it's a bug in my server implementation).

A quick (and a little dirty) solution may be to define in the configuration the key to access your collection members.

A quicker and dirtier solution is to test the members and the hydra:members key existance.

What do you think ?

from rest-client-sdk.

leroy0211 avatar leroy0211 commented on August 30, 2024

Well, I think it is my bad.
I just saw that the server of the api example I use, is over 2 years old.

http://www.markus-lanthaler.com/hydra/api-demo/issues/

I think the hydra:member key (and of course the hydra: prefix) is proposed somewhere between 2013 and today.

from rest-client-sdk.

jdeniau avatar jdeniau commented on August 30, 2024

I think the two way are valid ways :

If you look at the Json-ld playground, you can see inline examples of the context. It defines a kind of namespace.

The thing with your server is that the context override the members definition and refer directly to the hydra:members endpoint url.

from rest-client-sdk.

jdeniau avatar jdeniau commented on August 30, 2024

Fixed in 0.20.0, you now have a "collectionKey" in the mapping that allows you to specify a custom key

from rest-client-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.