Browse Source

阶段步骤新增接口

tags/v3.0.1
moshenglv 5 years ago
parent
commit
a71f0b0550
1 changed files with 2 additions and 9 deletions
  1. +2
    -9
      api_document.md

+ 2
- 9
api_document.md View File

@@ -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 ```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' \ --header 'Content-Type: application/json' \
--data-raw ' {"steps":[{ --data-raw ' {"steps":[{
"id":7, "id":7,
@@ -4400,13 +4400,6 @@ curl --location --request PUT 'http://localhost:3000/api/ci/pipelines/1/2/stage_
"show_index": 1, "show_index": 1,
"content": "xxxxxxxxxxx", "content": "xxxxxxxxxxx",
"template_id":2 "template_id":2
},
{
"id":8,
"step_name": "编译构建22-maven",
"show_index": 1,
"content": "xxxxxxxxxxx",
"template_id":2
} }
] ]
}' }'


Loading…
Cancel
Save