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

Key: QB-3296
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Robin Shen
Reporter: Jerry Lee
Votes: 1
Watchers: 0
Operations

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

To support json rest api.

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

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:
http://localhost:8810/rest/trigger?configuration_id=
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:
There are no comments yet on this issue.