summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-08-05 11:38:43 +0200
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-08-05 11:38:43 +0200
commit81e839f41b38d165bd6af4899e12be2967d607e8 (patch)
tree5ecc09a1dc1a6934174e43adf78b1fd39eef3b92
parent554e18ab025fcd86001faa57fab14fe3ca28a672 (diff)
downloadgitlab-ce-zj-enable-deploy-keys-api.tar.gz
Fix styling on docs of Deploy Keys endpointszj-enable-deploy-keys-api
-rw-r--r--doc/api/deploy_keys.md5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/api/deploy_keys.md b/doc/api/deploy_keys.md
index a0340fd4d37..a288de5fc97 100644
--- a/doc/api/deploy_keys.md
+++ b/doc/api/deploy_keys.md
@@ -164,7 +164,7 @@ Example response:
Enables a deploy key for a project so this can be used. Returns the enabled key, with a status code 201 when successful.
-```
+```bash
curl -X POST -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/5/deploy_keys/13/enable
```
@@ -176,7 +176,6 @@ curl -X POST -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com
Example response:
```json
-```json
{
"key" : "ssh-rsa AAAA...",
"id" : 12,
@@ -189,7 +188,7 @@ Example response:
Disable a deploy key for a project. Returns the disabled key.
-```
+```bash
curl -X DELETE -H "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/projects/5/deploy_keys/13/disable
```