You are viewing an old version (v. 7) of this page.
The latest version is v. 27, last edited on Jun 13, 2011
(view differences
|
)
<< View previous version | view page history | view next version >>
<< View previous version | view page history | view next version >>
Since QuickBuild 4.0, you can retrieve changes via RESTful APIs. The base URI for changes RESTful APIs is:
/rest/changes
List all supported APIs
URI | Response Type | Params |
---|---|---|
/rest/changes/help | text/html |
Get the data version of changes
URI | Response Type | Params |
---|---|---|
/rest/changes/version | text/plain |
Get the commit stats
URI | Response Type | Params |
---|---|---|
/rest/changes/stats/{configuration_id} | application/xml |
|
Query stats of a specific build
http://quickbuild:8810/changes/stats/25?build_id=102
the response looks like:
<stats commits="5" modifications="7" added="2" modified="3" deleted="2"/>
Query stats for a build range
http://quickbuild:8810/changes/stats/25?from_build=100&to_build=120
Query stats for a date range
http://quickbuild:8810/changes/stats/25?from_date=20110501&to_date=20110601
by default, the date pattern is yyyyMMdd, you can also specify the date pattern by adding parameter date_pattern, the valid date pattern can be found here, for example:
http://quickbuild:8810/changes/stats/25?from_date=2011-05-01&to_date=2011-06-01&date_pattern=yyyy-MM-dd
Query stats of a specific repository or committer
By adding repository or committer parameter, you can get the stats of a specific repository or committer, for example:
http://quickbuild:8810/changes/stats/25?build_id=102&repository=mysvn
this will get the stats data for repository mysvn.
Retrieve the commits
URI | Response Type | Params |
---|---|---|
/rest/changes/{configuration_id} | application/xml |
|