Uploaded image for project: 'Slider'
  1. Slider
  2. SLIDER-151 Implement full slider API in REST and switch client to it
  3. SLIDER-738

(protototype) Registry REST API to serve up 302 redirects to service endpoints

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Slider 0.60
    • None
    • registry, Web & REST
    • None
    • Slider December #1

    Description

      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.

      GET services/org.apache.slider/app1/?api=http://org.apache.slider/registry&format=redirect
      

      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

      Attachments

        Activity

          People

            stevel@apache.org Steve Loughran
            stevel@apache.org Steve Loughran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 3h
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified