Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36542

Enhance "classes" REST API to support multiple class names in a single call

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Critical Critical
    • blueocean-plugin
    • None
    • 1.0-pre-beta-1

      see: https://github.com/jenskinsci/blueocean-plugin/blob/master/blueocean-rest/README.md#class-of-resource-discovery

      To optimize performance for the client UI, it should be able to call the /rest/classes/:className API with multiple class names, perhaps as a comma or pipe-separated list of class names. e.g:

      http://localhost:8080/jenkins/blue/rest/classes/io.jenkins.blueocean.service.embedded.rest.MultiBranchPipelineImpl,io.jenkins.blueocean.service.embedded.rest.PipelineImpl

      This would return a response similar to:

      [
        {
          "_class": "io.jenkins.blueocean.service.embedded.rest.MultiBranchPipelineImpl",
          “classes”: [“io.jenkins.blueocean.rest.model.BlueMultiBranchPipeline”,"io.jenkins.blueocean.rest.model.BluePipeline","io.jenkins.blueocean.rest.model.Resource"]
        },
        {
          "_class": "io.jenkins.blueocean.service.embedded.rest.PipelineImpl",
          “classes”: [“io.jenkins.blueocean.rest.model.BluePipeline”]
        }
      ]
      

      The format of the request and response can be whatever is most convenient on the server side, the content above was just one possible example.

            vivek Vivek Pandey
            cliffmeyers Cliff Meyers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: