Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
5173955f
Commit
5173955f
authored
Jul 07, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs
parent
2aa95aa0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
doc/api/project_snippets.md
doc/api/project_snippets.md
+31
-0
doc/api/snippets.md
doc/api/snippets.md
+5
-0
No files found.
doc/api/project_snippets.md
View file @
5173955f
...
...
@@ -119,3 +119,34 @@ Parameters:
-
`id`
(required) - The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user
-
`snippet_id`
(required) - The ID of a project's snippet
## Get user agent details
> **Notes:**
> [Introduced][ce-29508] in GitLab 9.4.
Available only for admins.
```
GET /projects/:id/snippets/:snippet_id/user_agent_detail
```
| Attribute | Type | Required | Description |
|-------------|---------|----------|--------------------------------------|
|
`id`
| Integer | yes | The ID of a snippet |
```
bash
curl
--request
GET
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
https://gitlab.example.com/api/v4/projects/1/snippets/1/user_agent_detail
```
Example response:
```
json
{
"user_agent"
:
"AppleWebKit/537.36"
,
"ip_address"
:
"127.0.0.1"
,
"akismet_submitted"
:
false
}
```
[
ce-[ce-29508
]:
https://gitlab.com/gitlab-org/gitlab-ce/issues/29508]:
https://gitlab.com/gitlab-org/gitlab-ce/issues/29508
doc/api/snippets.md
View file @
5173955f
...
...
@@ -237,6 +237,10 @@ Example response:
## Get user agent details
> **Notes:**
> [Introduced][ce-29508] in GitLab 9.4.
Available only for admins.
```
...
...
@@ -260,3 +264,4 @@ Example response:
"akismet_submitted"
:
false
}
```
[
ce-[ce-29508
]:
https://gitlab.com/gitlab-org/gitlab-ce/issues/29508]:
https://gitlab.com/gitlab-org/gitlab-ce/issues/29508
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment