From a71f0b05507351ffa3cdaeeb4ff79eab8121003c Mon Sep 17 00:00:00 2001 From: moshenglv Date: Thu, 14 Jan 2021 15:34:35 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B6=E6=AE=B5=E6=AD=A5=E9=AA=A4=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api_document.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/api_document.md b/api_document.md index 3c6129086..cd2841748 100644 --- a/api_document.md +++ b/api_document.md @@ -4386,13 +4386,13 @@ http://localhost:3000/api/ci/pipelines/1/2/steps.json | jq #### 流水线阶段步骤新增/更新 ``` -PUT /api/ci/pipelines/{id}/{stage_id}/stage_step +POST /api/ci/pipelines/{id}/{stage_id}/stage_step ``` *示例* ```bash -curl --location --request PUT 'http://localhost:3000/api/ci/pipelines/1/2/stage_step.json' \ +curl --location --request POST 'http://localhost:3000/api/ci/pipelines/1/2/stage_step.json' \ --header 'Content-Type: application/json' \ --data-raw ' {"steps":[{ "id":7, @@ -4400,13 +4400,6 @@ curl --location --request PUT 'http://localhost:3000/api/ci/pipelines/1/2/stage_ "show_index": 1, "content": "xxxxxxxxxxx", "template_id":2 -}, -{ - "id":8, - "step_name": "编译构建22-maven", - "show_index": 1, - "content": "xxxxxxxxxxx", - "template_id":2 } ] }'