summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-07-06 11:48:19 +0200
committerJames Lopez <james@jameslopez.es>2017-07-06 11:48:19 +0200
commit2736067cbe41f262b9047a1116f0686d98a43dd0 (patch)
tree0063a2d5cdc3d980c44bdccb23583d3bc60d1a1b
parent243abd71a958e6acee52118e6616aa6994b47fe4 (diff)
downloadgitlab-ce-feature/user-agent-details-api.tar.gz
-rw-r--r--doc/api/issues.md4
-rw-r--r--doc/api/snippets.md4
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/api/issues.md b/doc/api/issues.md
index befcc80de26..067934bd480 100644
--- a/doc/api/issues.md
+++ b/doc/api/issues.md
@@ -967,6 +967,8 @@ Comments are done via the [notes](notes.md) resource.
## Get user agent details
+Available only for admins.
+
```
GET /projects/:id/issues/:issue_iid/user_agent_detail
```
@@ -986,6 +988,6 @@ Example response:
{
"user_agent": "AppleWebKit/537.36",
"ip_address": "127.0.0.1",
- "submitted": false,
+ "submitted": false
}
```
diff --git a/doc/api/snippets.md b/doc/api/snippets.md
index 7be6cb3da2d..39d099f0470 100644
--- a/doc/api/snippets.md
+++ b/doc/api/snippets.md
@@ -237,6 +237,8 @@ Example response:
## Get user agent details
+Available only for admins.
+
```
GET /snippets/:id/user_agent_detail
```
@@ -255,6 +257,6 @@ Example response:
{
"user_agent": "AppleWebKit/537.36",
"ip_address": "127.0.0.1",
- "submitted": false,
+ "submitted": false
}
```