Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Get Project Properties

GET http://localhost:8080/rest/projectproperties/1.0/property/list/{projectKey}

...

Code Block
$ curl -u"user:pass" -XGET http://localhost:8080/rest/projectproperties/1.0/property/list/DT


Create/Add Project Properties

POST http://localhost:8080/rest/projectproperties/1.0/property/add

...

Code Block
$ curl -u"user:pass" -XPOST  -H "Content-Type: application/json" --data '{"projectKey":"DT", \
"propertyKey":"project.security", "propertyValue":"nxoedoew"}' \
http://localhost:8080/rest/projectproperties/1.0/property/add
{"property":5,"message":"[Info] Added Property."}
$


Update Project Properties

POST http://localhost:8080/rest/projectproperties/1.0/property/update

...

Note. Update creates property if not exists.


Batch Or Bulk Update Project Properties

POST http://localhost:8080/rest/projectproperties/1.0/property/update/bulk/{projectKey}

...

Note. Update creates properties if not exists.


Force Update Project Properties

POST http://localhost:8080/rest/projectproperties/1.0/property/update/force

...

Code Block
$ curl -u"user:pass" -XPOST  -H "Content-Type: application/json" --data '{"projectKey":"DT", \
"propertyId":"5", "propertyKey":"project.security.x", "propertyValue":"xxxxxxx"}' \
http://localhost:8080/rest/projectproperties/1.0/property/update/force
{"property":3,"message":"[Info] Updated Property."}
$


Delete Project Properties

DELETE http://localhost:8080/rest/projectproperties/1.0/property/remove/{projectKey}/{propertyId}

...

Code Block
curl -u"user:pass" -XDELETE http://localhost:8080/rest/projectproperties/1.0/property/remove/DT/5

...


Groovy Examples

https://bitbucket.org/scmenthusiast/scmenthusiast-utilities/src/master/project-properties/groovy/PYTHON EXAMPLES


Python Examples

https://bitbucket.org/scmenthusiast/scmenthusiast-utilities/src/master/project-properties/python/