[ 
https://issues.apache.org/jira/browse/SLIDER-738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14267751#comment-14267751
 ] 

Gour Saha commented on SLIDER-738:
----------------------------------

We need to take precaution here so that we don't redirect to any arbitrary api, 
say "http://xyz.hack.com/got-you";. Ideally the redirect site should be 
internally generated if possible.

> (protototype) Registry REST API to serve up 302 redirects to service endpoints
> ------------------------------------------------------------------------------
>
>                 Key: SLIDER-738
>                 URL: https://issues.apache.org/jira/browse/SLIDER-738
>             Project: Slider
>          Issue Type: Sub-task
>          Components: registry, Web & REST
>    Affects Versions: Slider 0.60
>            Reporter: Steve Loughran
>            Assignee: Steve Loughran
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> extend the REST view of the registry so that you can ask for a specific api 
> of a service endpoint, and optionally for the response to be a 302 to the 
> chosen destination.
> e.g.
> {code}
> GET 
> services/org.apache.slider/app1/?api=http://org.apache.slider/registry&format=redirect
> {code}
> this would look up the API, 404 if not there, and that provided the address 
> format is a URI, return a (random) choice of one of the listed instances as a 
> 302 redirect.
> The benefit here is that you can bookmark an entry, or use curl without 
> having to parse the resulting JSON at all -it is all processed server-side
> +tests



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to