|
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiImplicitParam;
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
@@ -19,9 +20,9 @@ import java.util.List;
|
|
|
* @date 2021/3/12
|
|
* @date 2021/3/12
|
|
|
* @description:
|
|
* @description:
|
|
|
*/
|
|
*/
|
|
|
-@RestController("/deployments")
|
|
|
|
|
-@ResponseBody
|
|
|
|
|
-@Api(value = "流水线部署的实例")
|
|
|
|
|
|
|
+@Api(tags = "流水线部署的实例 API")
|
|
|
|
|
+@RestController
|
|
|
|
|
+@RequestMapping("/deployments")
|
|
|
public class DeploymentController {
|
|
public class DeploymentController {
|
|
|
|
|
|
|
|
private final DeploymentService deploymentService;
|
|
private final DeploymentService deploymentService;
|
|
@@ -53,7 +54,7 @@ public class DeploymentController {
|
|
|
* 执行一条pipepine
|
|
* 执行一条pipepine
|
|
|
* todo 异步/异步异常捕获刷新result
|
|
* todo 异步/异步异常捕获刷新result
|
|
|
*/
|
|
*/
|
|
|
- @ApiOperation(value = "删除一个实例", httpMethod = "DELETE")
|
|
|
|
|
|
|
+ @ApiOperation(value = "删除一个部署的实例", httpMethod = "DELETE")
|
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
|
@ApiImplicitParam(name = "projectId", dataType = "int"),
|
|
@ApiImplicitParam(name = "projectId", dataType = "int"),
|
|
|
@ApiImplicitParam(name = "pipelineId", dataType = "int")
|
|
@ApiImplicitParam(name = "pipelineId", dataType = "int")
|