Skip to content

Latest commit

 

History

History
32 lines (17 loc) · 939 Bytes

README.md

File metadata and controls

32 lines (17 loc) · 939 Bytes

Reachably HAL API Proxy

Experiments with proxying all api requests through another app...

What it does:

If you send param of prefetch=item, and the response looks like HAL, it will fetch a full representation of the object at _embedded[item] and replace the current representation with whatever is the result of a GET _embedded[item][_links][self].

This is based on an original concept seen in: http://vimeo.com/49609648

All other requests will pass through to the original app you point this proxy to, rewriting all urls in the response to hit the proxy.

set ENV['PROXY_TARGET'] && ENV['PROXY_URL']

Motivations

(why?)

Starting:

ruby application.rb -p 9293