Browse Source

Update branch and PR web API description

tags/9.4.0.54424
Zipeng WU 2 years ago
parent
commit
765ac490d9

+ 1
- 1
server/sonar-webserver-webapi/src/main/java/org/sonar/server/branch/pr/ws/PullRequestsWs.java View File

public void define(Context context) { public void define(Context context) {
NewController controller = context.createController("api/project_pull_requests") NewController controller = context.createController("api/project_pull_requests")
.setSince("7.1") .setSince("7.1")
.setDescription("Manage pull request (only available when the Branch plugin is installed)");
.setDescription("Manage pull request");
stream(actions).forEach(action -> action.define(controller)); stream(actions).forEach(action -> action.define(controller));
controller.done(); controller.done();
} }

+ 1
- 1
server/sonar-webserver-webapi/src/main/java/org/sonar/server/branch/ws/BranchesWs.java View File

public void define(Context context) { public void define(Context context) {
NewController controller = context.createController(CONTROLLER) NewController controller = context.createController(CONTROLLER)
.setSince("6.6") .setSince("6.6")
.setDescription("Manage branch (only available when the Branch plugin is installed)");
.setDescription("Manage branch");
Arrays.stream(actions).forEach(action -> action.define(controller)); Arrays.stream(actions).forEach(action -> action.define(controller));
controller.done(); controller.done();
} }

+ 1
- 1
sonar-ws-generator/src/main/resources/snapshot-of-api.json View File

{ {
"path": "api/project_branches", "path": "api/project_branches",
"since": "6.6", "since": "6.6",
"description": "Manage branch (only available when the Branch plugin is installed)",
"description": "Manage branch",
"actions": [ "actions": [
{ {
"key": "delete", "key": "delete",

Loading…
Cancel
Save