summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2017-01-25 12:59:21 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-01-25 12:59:21 +0000
commitbc7febfff094531d385bb6dc3f53885fb0a2f400 (patch)
treef412bdabd5b43c4490b9ca8bb85daef09e636371
parent84ae12c9ed525613c471a8c5d73f5989b07dd9f4 (diff)
parentde8eeac556940471761641433849667fb2f146e6 (diff)
downloadgitlab-ce-bc7febfff094531d385bb6dc3f53885fb0a2f400.tar.gz
Merge branch 'patch-12' into 'master'
Update enviroments.md - example CURL requests had a typo in the URL See merge request cd ../gdk-ee/
-rw-r--r--doc/api/enviroments.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/enviroments.md b/doc/api/enviroments.md
index 1299aca8c45..e0ee20d9610 100644
--- a/doc/api/enviroments.md
+++ b/doc/api/enviroments.md
@@ -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/environment/1"
+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"
```
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/environment/1"
+curl --request DELETE --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" "https://gitlab.example.com/api/v3/projects/1/environments/1"
```
Example response: