hyperresource
hyperresource copied to clipboard
A self-inflating Ruby client for hypermedia APIs. Not under active development.
the `outgoing_body_filter` method is described and has a base implementation in `hyper_resource.rb` ``` ruby ## +outgoing_body_filter+ filters a hash of attribute keys and values ## on their way from a...
It would be really cool if Hyperresource also could handle JWT besides plain JSON.
Documentation says: ``` api.body ``` So far any apis I've tested need to use: ``` api.get.body ```
The amended behaviour aligns with the intent described in the comment above it. Context: A link named `container:27d6320f12e28b57ea7b2cbf423e647ab7f56793d7622069c9dc1d2f7a8d362b` Before: underscored_name: `container___d____f__e__b__ea_b_cbf___e___ab_f_____d_______c_dc_d_f_a_d___b` After: underscored_name: `container_27d6320f12e28b57ea7b2cbf423e647ab7f56793d7622069c9dc1d2f7a8d362b`
Given that hypermedia APIs can be on the chatty side, HTTP keepalive would be a useful feature from a performance perspective. It doesn't look like hyperresource currently supports this. Consider...
Given the following node: ``` json { "name": "foo" } ``` ``` # ``` `node.name` and `node['name']` both return nil
I think given a response for a resource that has a `Content-type: application/json`, when you make a PUT or POST to it, it would be nice if it assumed the...
I've verified my API server using the HAL-browser, but when I try `hyperresource` it doesn't search properly on the underlying products collection. `GET /products` returns this: ``` json { "_links":...
In our API we use the `profile` attribute of links extensively, but they are not available from the `HyperResource::Link` instances. It would be great to add this as an attribute...
Is there anything more than looping while redirected and avoiding infinite loops in https://github.com/gamache/hyperresource/blob/master/lib/hyper_resource/modules/http.rb#L220, before I implement it?