Вы находитесь на странице: 1из 3

POST api/projects/create

Since 4.0
Provision a project. Requires Provision Projects permission
Parameters

branch SCM Branch of the project. The key of the project will become key:branch, for instance
optional 'SonarQube:branch-5.0'
Example value: branch‐5.0

format Response format can be set through:


optional Parameter format: xml | json
Or the 'Accept' property in the HTTP header:
Accept:text/xml
Accept:application/json
If nothing is set, json is used
Possible values:
json , xml

key Key of the project


required Example value: org.codehaus.sonar:sonar

name Name of the project


api/profiles required Example value: SonarQube
api/projects
Former quality profiles web service

api/projects
  "id": "30057", 
Projects management   "k": "org.jenkins‐ci.plugins:sonar", 
  "nm": "Jenkins Sonar Plugin", 
api/properties
  "sc": "PRJ", 
Properties management   "qu": "TRK" 
}
api/qualitygates
This service manages quality gates,
including conditions and project POST api/projects/destroy
association Since 2.11
Delete a project. Requires Administer System permission
Delete a project. Requires Administer System permission
api/qualityprofiles
Parameters
Quality Profiles
id id or key of the resource (ie: component)
api/resources required Example value: org.codehaus.sonar:sonar
Former components web service

api/rules
GET api/projects/index
Coding rules Since 2.10
Search for projects
api/server
Parameters
Get system properties and upgrade db
desc Load project description
api/sources optional Possible values:
Display sources information true , false
Default value: true
api/system
format Response format can be set through:
api/tests optional Parameter format: xml | json
Or the 'Accept' property in the HTTP header:
Tests management
Accept:text/xml
api/timemachine Accept:application/json
If nothing is set, json is used
Possible values:
json , xml

key id or key of the project


optional Example value: org.codehaus.sonar:sonar

libs Load libraries. Ignored if the parameter key is set


optional Possible values:
true , false
Default value: false

search Substring of project name, case insensitive


optional Example value: Sonar

subprojects Load sub-projects. Ignored if the parameter key is set


optional Possible values:
optional Possible values:
true , false
Default value: false

versions Load version


optional Possible values:
true , false , last
Default value: false

views Load views and sub-views. Ignored if the parameter key is set
optional Possible values:
true , false
Default value: false

Example response

Вам также может понравиться