Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-7268

REST Endpoint to upload Routing config

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0
    • Component/s: None
    • Labels:
      None
    • Release Notes:
      Added an HTTP RESTful API to store, fetch, and delete RouteConfigs for user service endpoint routing control.
    • Rank:
      1|hzzlvj:

      Description

      POST /v3/namespaces/<namespace-id>/apps/<app-id>/services/<service-id>/routing

      { 'Routing Config' }

      The Routing Config is a JSON that whose structure looks as follows:

      { "version-id1", number1, "version-id2", number2, .... }

      For example,

      { "v1", 10, "v2", 90 }

      . This config says that version v1 should get 10% of the requests and version v2 should get 90% of all the service method requests addressing that particular service. The numbers should be integers.

      The numbers should add up to 100 exactly. Otherwise, a BadRequest code will be returned.

        Attachments

          Activity

            People

            • Assignee:
              gokul Gokul Gunasekaran
              Reporter:
              gokul Gokul Gunasekaran
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: