Steve Loughran created SLIDER-738:
-------------------------------------

             Summary: (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


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