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

WS /api/events does not work for views

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.5.1
    • Component/s: None
    • Labels:
      None

      Description

      WS events does not work for views while it should.

      • On projects works fine :

        curl -X POST -u admin:admin "http://localhost:9000/api/events?resource=cobol.examples.simple-project&category=Version&name=2.0&description=bla&dateTime=2014-10-09"

        • Response
          [{"id":"1596","rk":"cobol.examples.simple-project","n":"2.0","c":"Version","dt":"2014-10-09T15:23:50+0200","ds":"bla"}]
          
      • On views :

        curl -X POST -u admin:admin "http://localhost:9000/api/events?resource=it_coverage&category=Version&name=3.0&description=bla&dateTime=2014-10-21"

        • Response
          {"err_code":400,"err_msg":"Resource must be a root project"}
          

        Attachments

          Activity

            People

            Assignee:
            julien.lancelot Julien Lancelot
            Reporter:
            jose.gomez José Gomez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: