<< Back to previous view

[QB-3296] To support json rest api.
Created: 20/Nov/18  Updated: 18/Mar/20

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: 8.0.26
Fix Version/s: 10.0.0

Type: Improvement Priority: Minor
Reporter: Jerry Lee Assigned To: Robin Shen
Resolution: Fixed Votes: 6
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: Any OS which can support curl.


 Description   
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"}'

 Comments   
Comment by Klaus Youm [ 16/Apr/19 12:24 AM ]
Dear Robin,

We also need JSON formatted response. Could you check this feature to improve current 9.0 version or next major version, kindly?

Regards,
Klaus.
Comment by iamuser [ 16/Apr/19 01:26 AM ]
Many other related systems request us to provide json formatted info from QB.
Please support this!!
Comment by Alexey Shumkin [ 18/Apr/19 10:25 AM ]
I also request the feature
Comment by Klaus Youm [ 16/May/19 08:57 AM ]
Dear Robin,

Could you share your plan to improve our QuickBuild, please? We are totally looking forward to hearing any updates for this improvement.

Regards,
Klaus.
Comment by Robin Shen [ 16/May/19 10:55 PM ]
The change is not trivial and we plan to deliver this in QB10 which will be available early 2020.
Generated at Tue Apr 23 15:11:04 UTC 2024 using JIRA 189.