Commit c3fa4b6a authored by Killian Brackey's avatar Killian Brackey

Exposed ID in API Entity: Event and updated documentation

parent b07a1923
......@@ -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",
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment