History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-3296
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Robin Shen
Reporter: Jerry Lee
Votes: 6
Watchers: 1

If you were logged in you would be able to see more operations.

To support json rest api.

Created: 20/Nov/18 03:57 AM   Updated: 18/Mar/20 12:37 AM
Component/s: None
Affects Version/s: 8.0.26
Fix Version/s: 10.0.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: Any OS which can support curl.

 Description  « Hide
QuickBuild doesn't support json rest api, now.
I found the documentation of RESTful API regarding 'Interact with Build Requests' like shown below.
Since QuickBuild 6.0.14, one can also trigger new build via GET request by accessing below url:
Where should be replaced with identifier of a configuration. The response is of mime type text/plain and the content is XML representation of newly created request result. Note that this approach does not accept variables or promotions information.
Why don't you add json rest api feature in QB?
If QB supports it, people can make an build request more easily with some variables for specified configuration without creating xml file.

For example,
$ curl -X POST http://localhost:8810/rest/trigger -H "Content-Type: application/json" -d '{"configuration": "1234", "var1": "var1_value"}'

 All   Comments   Work Log   Change History      Sort Order:
Change by Robin Shen [18/Mar/20 12:37 AM]
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 10.0.0 [ 11937 ]
Resolution Fixed [ 1 ]