diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-27 09:09:01 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-27 09:09:01 +0000 |
commit | c72e5ebe9938d315ec598197873e71a80168d40a (patch) | |
tree | 439bf5c40aaf774e5a301825af517cb52726f450 /doc/api/environments.md | |
parent | ffc43b862df32a590eae874bcbb11109b46dc8be (diff) | |
download | gitlab-ce-c72e5ebe9938d315ec598197873e71a80168d40a.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/api/environments.md')
-rw-r--r-- | doc/api/environments.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/api/environments.md b/doc/api/environments.md index 6817b904618..ffaff5f4f1e 100644 --- a/doc/api/environments.md +++ b/doc/api/environments.md @@ -4,7 +4,7 @@ Get all environments for a given project. -``` +```plaintext GET /projects/:id/environments ``` @@ -34,7 +34,7 @@ Example response: ## Get a specific environment -``` +```plaintext GET /projects/:id/environments/:environment_id ``` @@ -145,7 +145,7 @@ Creates a new environment with the given name and external_url. It returns `201` if the environment was successfully created, `400` for wrong parameters. -``` +```plaintext POST /projects/:id/environments ``` @@ -177,7 +177,7 @@ Updates an existing environment's name and/or external_url. It returns `200` if the environment was successfully updated. In case of an error, a status code `400` is returned. -``` +```plaintext PUT /projects/:id/environments/:environments_id ``` @@ -208,7 +208,7 @@ Example response: It returns `204` if the environment was successfully deleted, and `404` if the environment does not exist. -``` +```plaintext DELETE /projects/:id/environments/:environment_id ``` @@ -225,7 +225,7 @@ curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" "https://git It returns `200` if the environment was successfully stopped, and `404` if the environment does not exist. -``` +```plaintext POST /projects/:id/environments/:environment_id/stop ``` |