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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
bd9b6211
Commit
bd9b6211
authored
Jul 05, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add API documentation
parent
6ee87aea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
doc/api/issues.md
doc/api/issues.md
+25
-0
doc/api/snippets.md
doc/api/snippets.md
+24
-0
No files found.
doc/api/issues.md
View file @
bd9b6211
...
...
@@ -964,3 +964,28 @@ Example response:
## Comments on issues
Comments are done via the
[
notes
](
notes.md
)
resource.
## Get user agent details
```
GET /projects/:id/issues/:issue_iid/user_agent_detail
```
| Attribute | Type | Required | Description |
|-------------|---------|----------|--------------------------------------|
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user |
|
`issue_iid`
| integer | yes | The internal ID of a project's issue |
```
bash
curl
--request
GET
--header
"PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK"
https://gitlab.example.com/api/v4/projects/5/issues/93/user_agent_detail
```
Example response:
```
json
{
"user_agent"
:
"AppleWebKit/537.36"
,
"ip_address"
:
"127.0.0.1"
,
"submitted"
:
false
,
}
```
doc/api/snippets.md
View file @
bd9b6211
...
...
@@ -234,3 +234,27 @@ Example response:
}
]
```
## Get user agent details
```
GET /snippets/: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/snippets/1/user_agent_detail
```
Example response:
```
json
{
"user_agent"
:
"AppleWebKit/537.36"
,
"ip_address"
:
"127.0.0.1"
,
"submitted"
:
false
,
}
```
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