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
c3fa4b6a
Commit
c3fa4b6a
authored
Aug 17, 2020
by
Killian Brackey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exposed ID in API Entity: Event and updated documentation
parent
b07a1923
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
doc/api/events.md
doc/api/events.md
+9
-0
lib/api/entities/event.rb
lib/api/entities/event.rb
+1
-0
No files found.
doc/api/events.md
View file @
c3fa4b6a
...
...
@@ -80,6 +80,7 @@ Example response:
```
json
[
{
"id"
:
1
,
"title"
:
null
,
"project_id"
:
1
,
"action_name"
:
"opened"
,
...
...
@@ -99,6 +100,7 @@ Example response:
"author_username"
:
"user3"
},
{
"id"
:
2
,
"title"
:
null
,
"project_id"
:
1
,
"action_name"
:
"opened"
,
...
...
@@ -152,6 +154,7 @@ Example response:
```
json
[
{
"id"
:
3
,
"title"
:
null
,
"project_id"
:
15
,
"action_name"
:
"closed"
,
...
...
@@ -170,6 +173,7 @@ Example response:
"author_username"
:
"root"
},
{
"id"
:
4
,
"title"
:
null
,
"project_id"
:
15
,
"action_name"
:
"pushed"
,
...
...
@@ -197,6 +201,7 @@ Example response:
"target_title"
:
null
},
{
"id"
:
5
,
"title"
:
null
,
"project_id"
:
15
,
"action_name"
:
"closed"
,
...
...
@@ -215,6 +220,7 @@ Example response:
"author_username"
:
"root"
},
{
"id"
:
7
,
"title"
:
null
,
"project_id"
:
15
,
"action_name"
:
"commented on"
,
...
...
@@ -286,6 +292,7 @@ Example response:
```
json
[
{
"id"
:
8
"title"
:
null
,
"project_id"
:
1
,
"action_name"
:
"opened"
,
...
...
@@ -306,6 +313,7 @@ Example response:
"author_username"
:
"user3"
},
{
"id"
:
9
,
"title"
:
null
,
"project_id"
:
1
,
"action_name"
:
"opened"
,
...
...
@@ -326,6 +334,7 @@ Example response:
"author_username"
:
"ted"
},
{
"id"
:
10
,
"title"
:
null
,
"project_id"
:
1
,
"action_name"
:
"commented on"
,
...
...
lib/api/entities/event.rb
View file @
c3fa4b6a
...
...
@@ -3,6 +3,7 @@
module
API
module
Entities
class
Event
<
Grape
::
Entity
expose
:id
expose
:project_id
,
:action_name
expose
:target_id
,
:target_iid
,
:target_type
,
:author_id
expose
:target_title
...
...
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