summaryrefslogtreecommitdiff
path: root/doc/api/enviroments.md
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-03-01 20:31:23 +0000
committerDouwe Maan <douwe@gitlab.com>2017-03-01 20:31:23 +0000
commitb6a945b39354ec2b2c09fc5f6904dfbf8990df26 (patch)
treee9b90b651a331b7c1117642ebd2f83a2c37ea26d /doc/api/enviroments.md
parent7e2ad5d47a1d95281e2a217538dae67107a584c2 (diff)
parent1ead6a9793f790b4111180781234cc6a43590cc1 (diff)
downloadgitlab-ce-b6a945b39354ec2b2c09fc5f6904dfbf8990df26.tar.gz
Merge branch 'api-v4-doc' into 'master'
Use v4 endpoint in API docs See merge request !9631
Diffstat (limited to 'doc/api/enviroments.md')
-rw-r--r--doc/api/enviroments.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/enviroments.md b/doc/api/enviroments.md
index 61677569254..3f0a8d989f9 100644
--- a/doc/api/enviroments.md
+++ b/doc/api/enviroments.md
@@ -13,7 +13,7 @@ GET /projects/:id/environments
| `id` | integer | yes | The ID of the project |
```bash
-curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/1/environments
+curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/projects/1/environments
```
Example response:
@@ -46,7 +46,7 @@ POST /projects/:id/environment
| `external_url` | string | no | Place to link to for this environment |
```bash
-curl --data "name=deploy&external_url=https://deploy.example.gitlab.com" --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/environments"
+curl --data "name=deploy&external_url=https://deploy.example.gitlab.com" --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/1/environments"
```
Example response:
@@ -78,7 +78,7 @@ PUT /projects/:id/environments/:environments_id
| `external_url` | string | no | The new external_url |
```bash
-curl --request PUT --data "name=staging&external_url=https://staging.example.gitlab.com" --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/environments/1"
+curl --request PUT --data "name=staging&external_url=https://staging.example.gitlab.com" --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/1/environments/1"
```
Example response:
@@ -106,7 +106,7 @@ DELETE /projects/:id/environments/:environment_id
| `environment_id` | integer | yes | The ID of the environment |
```bash
-curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/environments/1"
+curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v4/projects/1/environments/1"
```
## Stop an environment