summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorJan <king-jan1999@hotmail.de>2018-06-13 10:28:27 +0000
committerRémy Coutable <remy@rymai.me>2018-06-13 10:28:27 +0000
commit4077d4f735ed40b7a62baa35464677813c3b6784 (patch)
tree93280f31285f3ed0a334e53f5ed06d1f646ef262 /doc/api
parenta0a6e38b68e02b2e5f3336f14b0d3266d9aadc89 (diff)
downloadgitlab-ce-4077d4f735ed40b7a62baa35464677813c3b6784.tar.gz
Resolve "Provide ability to retrieve `visibility` level via Snippets API"
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/snippets.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/api/snippets.md b/doc/api/snippets.md
index 42b760c107d..7892866cd8e 100644
--- a/doc/api/snippets.md
+++ b/doc/api/snippets.md
@@ -49,6 +49,7 @@ Example response:
"title": "test",
"file_name": "add.rb",
"description": "Ruby test snippet",
+ "visibility": "private",
"author": {
"id": 1,
"username": "john_smith",
@@ -99,6 +100,7 @@ Example response:
"title": "This is a snippet",
"file_name": "test.txt",
"description": "Hello World snippet",
+ "visibility": "internal",
"author": {
"id": 1,
"username": "john_smith",
@@ -150,6 +152,7 @@ Example response:
"title": "test",
"file_name": "add.rb",
"description": "description of snippet",
+ "visibility": "internal",
"author": {
"id": 1,
"username": "john_smith",
@@ -238,7 +241,8 @@ Example response:
"raw_url": "http://localhost:3000/snippets/48/raw",
"title": "Minus similique nesciunt vel fugiat qui ullam sunt.",
"updated_at": "2016-11-25T16:53:34.479Z",
- "web_url": "http://localhost:3000/snippets/48"
+ "web_url": "http://localhost:3000/snippets/48",
+ "visibility": "public"
}
]
```