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

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: Critical
    • Component/s: blueocean-plugin
    • None

      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.

            Assignee:
            Vivek Pandey
            Reporter:
            Cliff Meyers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: