codegram / hyperclient

HyperClient is a Ruby Hypermedia API client.
MIT License
153 stars 35 forks source link

Extending this to support JSON-API #52

Open mahmoudimus opened 10 years ago

mahmoudimus commented 10 years ago

We're big fans of json-api @balanced and I think your code could be something core to the balanced/balanced-ruby project.

We currently do not support HAL however I would like to extend HyperClient for json-api support.

Wanted to get your thoughts on creating a milestone that we can contribute to.

oriolgual commented 10 years ago

Hi @mahmoudimus I'm really looking forward to JSON-API, I also thought of adapting hyperclient to support it. The reasons behind not already done it is lack of time and the fact that I don't know if JSON-API is stable enough.

Anyway, any work towards this is really appreciate and I'll try to help making it. I guess the first part would be extracting the specific HAL logic into an adapter, so we can then add more adapters (like JSON-API).

dblock commented 10 years ago

Quite a bit of work in #63 has made navigation elements less prominent in the use of the API. So in theory you can write a client that's 100% domain logic and doesn't know "links" or "embed". This opens the door to this feature request.