summaryrefslogtreecommitdiff
path: root/doc/api
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-01-07 18:48:33 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2016-01-07 18:48:33 +0100
commite0ec69d919cb44194e76034f2324ec0d4f5f1df6 (patch)
treec3c66c981c47846f67ce082a242183a3a2e2abb4 /doc/api
parentb0a77a224857ed45afaf642b26ce3ba87d9828a7 (diff)
downloadgitlab-ce-e0ec69d919cb44194e76034f2324ec0d4f5f1df6.tar.gz
Change 'trigger_id' to 'token' as resource ID in triggers API
Diffstat (limited to 'doc/api')
-rw-r--r--doc/api/triggers.md12
1 files changed, 4 insertions, 8 deletions
diff --git a/doc/api/triggers.md b/doc/api/triggers.md
index 6adcc8fe3b8..4150d7b4c10 100644
--- a/doc/api/triggers.md
+++ b/doc/api/triggers.md
@@ -17,7 +17,6 @@ Parameters:
{
"created_at": "2015-12-23T16:24:34.716Z",
"deleted_at": null,
- "id": 1,
"last_used": "2016-01-04T15:41:21.986Z",
"token": "fbdb730c2fbdb095a0862dbd8ab88b",
"updated_at": "2015-12-23T16:24:34.716Z"
@@ -25,7 +24,6 @@ Parameters:
{
"created_at": "2015-12-23T16:25:56.760Z",
"deleted_at": null,
- "id": 2,
"last_used": null,
"token": "7b9148c158980bbd9bcea92c17522d",
"updated_at": "2015-12-23T16:25:56.760Z"
@@ -38,19 +36,18 @@ Parameters:
Get details of trigger of a project
```
-GET /projects/:id/triggers/:trigger_id
+GET /projects/:id/triggers/:token
```
Parameters:
- `id` (required) - The ID of a project
-- `trigger_id` (required) - The ID of a trigger
+- `token` (required) - The `token` of a trigger
```json
{
"created_at": "2015-12-23T16:25:56.760Z",
"deleted_at": null,
- "id": 2,
"last_used": null,
"token": "7b9148c158980bbd9bcea92c17522d",
"updated_at": "2015-12-23T16:25:56.760Z"
@@ -73,7 +70,6 @@ Parameters:
{
"created_at": "2016-01-07T09:53:58.235Z",
"deleted_at": null,
- "id": 5,
"last_used": null,
"token": "6d056f63e50fe6f8c5f8f4aa10edb7",
"updated_at": "2016-01-07T09:53:58.235Z"
@@ -85,10 +81,10 @@ Parameters:
Remove a trigger of a project
```
-DELETE /projects/:id/triggers/:trigger_id
+DELETE /projects/:id/triggers/:token
```
Parameters:
- `id` (required) - The ID of a project
-- `trigger_id` (required) - The ID of a trigger
+- `token` (required) - The `token` of a trigger