Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7969

Create /api/settings/values WS

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.1
    • Component/s: Settings, Web API
    • Labels:

      Description

      Return settings values from a list of keys.
      If no value have been set for a setting, then the default value (if any) should be returned.
      It will be internal in 6.1, to be sure it's answering to all needs.

      Definitiion

      • keys : mandatory list of settings keys
      • componentKey (and componentId) : if set, return values for the component

      Example of result

      • Simple value
        {
          "settings" : [ 
            {
              "key": "sonar.test.jira",
              "value": "abc",
              "default": true,
              "inherited": false,
            }
          ]
        }
        
      • Multiple values
        {
          "settings" : [ 
            {
              "key": "sonar.autogenerated",
              "values": ["val1", "val2", "val3"],
              "default": false,
              "inherited": true,
            }
          ]
        }
        
      • Property set values
        {
          "settings" : [ 
            {
              "key": "sonar.demo",
              "fieldsValues": [
                {
                  "text": "foo", "boolean": "true"
                },
                {
                  "text": "bar", "boolean": "false"
               }],
               "default": false,
               "inherited": false,
            }
          ]
        }
        

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.lancelot Julien Lancelot
              Reporter:
              julien.lancelot Julien Lancelot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: