jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Sonar
  • SONAR-1382

Get server metadata from WS client library

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 2.0
  • Component/s: API
  • Labels:
    None
  • Patch Submitted:
    Yes
  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. File
    SONAR-1382.diff
    06/Feb/10 9:40 AM
    7 kB
    Evgeny Mandrikov

Issue Links

is depended upon by

Improvement - An improvement or enhancement to an existing feature or task. SONARIDE-14 Check server version

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Simon Brandhof added a comment - 07/Feb/10 5:41 AM - edited

The new URL /api/server/index returns the instance id and the version.

JSON response :

{"id":"20100207124430", "version":"2.0"}

XML response :

<?xml version="1.0" encoding="UTF-8"?>
<server>
  <id>20100207124430</id>
  <version>2.0</version>
</server>

To load this data from the WS client lib :

Server server = sonar.find(new ServerQuery());
server.getVersion();
server.getId();
Show
Simon Brandhof added a comment - 07/Feb/10 5:41 AM - edited The new URL /api/server/index returns the instance id and the version. JSON response :
{"id":"20100207124430", "version":"2.0"}
XML response :
<?xml version="1.0" encoding="UTF-8"?>
<server>
  <id>20100207124430</id>
  <version>2.0</version>
</server>
To load this data from the WS client lib :
Server server = sonar.find(new ServerQuery());
server.getVersion();
server.getId();
Hide
Permalink
Evgeny Mandrikov added a comment - 07/Feb/10 7:48 AM

I've made neccessary changes on http://docs.codehaus.org/display/SONAR/Web+Service+API

Show
Evgeny Mandrikov added a comment - 07/Feb/10 7:48 AM I've made neccessary changes on http://docs.codehaus.org/display/SONAR/Web+Service+API

People

  • Assignee:
    Simon Brandhof
    Reporter:
    Evgeny Mandrikov
Vote (0)
Watch (0)

Dates

  • Created:
    06/Feb/10 9:40 AM
    Updated:
    26/Feb/10 10:16 AM
    Resolved:
    07/Feb/10 5:46 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.