Skip to content

dtime/hal_proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages