REST API JSON

Hello.
I'm trying to trigger a build using rest api with parameters, but I haven't found the example with json.

Where I can find the example?

Thanks.

1
1 comment

You can simply convert the XML examples into json, or do a request for a "build" object from the server and use the response as a baseline. Here another example:

{"branchName":"dev","buildType":{"id":"<build_type_id>"}}

The best approach would be to replicate the structure with your own classes and simply use a json converter to convert the classes to json.

More information here: https://confluence.jetbrains.com/display/TCD10/REST+API#RESTAPI-TriggeringaBuild

0

Please sign in to leave a comment.