users.md 17.8 KB
Newer Older
Marin Jankovski's avatar
Marin Jankovski committed
1 2
# Users

Nihad Abbasov's avatar
Nihad Abbasov committed
3 4 5
## List users

Get a list of users.
6

7
This function takes pagination parameters `page` and `per_page` to restrict the list of users.
Nihad Abbasov's avatar
Nihad Abbasov committed
8

Ciro Santilli's avatar
Ciro Santilli committed
9
### For normal users
10 11 12 13 14 15 16 17 18 19 20 21 22

```
GET /users
```

```json
[
  {
    "id": 1,
    "username": "john_smith",
    "name": "John Smith",
    "state": "active",
    "avatar_url": "http://localhost:3000/uploads/user/avatar/1/cd8.jpeg",
23
    "web_url": "http://localhost:3000/john_smith"
24 25 26 27 28 29 30
  },
  {
    "id": 2,
    "username": "jack_smith",
    "name": "Jack Smith",
    "state": "blocked",
    "avatar_url": "http://gravatar.com/../e32131cd8.jpeg",
31
    "web_url": "http://localhost:3000/jack_smith"
32 33 34 35
  }
]
```

Ciro Santilli's avatar
Ciro Santilli committed
36
### For admins
37

Nihad Abbasov's avatar
Nihad Abbasov committed
38 39 40 41 42 43 44 45
```
GET /users
```

```json
[
  {
    "id": 1,
46
    "username": "john_smith",
Nihad Abbasov's avatar
Nihad Abbasov committed
47 48
    "email": "john@example.com",
    "name": "John Smith",
49
    "state": "active",
50
    "avatar_url": "http://localhost:3000/uploads/user/avatar/1/index.jpg",
51
    "web_url": "http://localhost:3000/john_smith",
Nihad Abbasov's avatar
Nihad Abbasov committed
52
    "created_at": "2012-05-23T08:00:58Z",
53
    "is_admin": false,
Nihad Abbasov's avatar
Nihad Abbasov committed
54
    "bio": null,
55
    "location": null,
Nihad Abbasov's avatar
Nihad Abbasov committed
56 57 58
    "skype": "",
    "linkedin": "",
    "twitter": "",
Jerome Dalbert's avatar
Jerome Dalbert committed
59
    "website_url": "",
60
    "organization": "",
61 62
    "last_sign_in_at": "2012-06-01T11:41:01Z",
    "confirmed_at": "2012-05-23T09:05:22Z",
63
    "theme_id": 1,
64
    "color_scheme_id": 2,
65 66 67 68 69 70 71
    "projects_limit": 100,
    "current_sign_in_at": "2012-06-02T06:36:55Z",
    "identities": [
      {"provider": "github", "extern_uid": "2435223452345"},
      {"provider": "bitbucket", "extern_uid": "john.smith"},
      {"provider": "google_oauth2", "extern_uid": "8776128412476123468721346"}
    ],
72
    "can_create_group": true,
73 74 75
    "can_create_project": true,
    "two_factor_enabled": true,
    "external": false
Nihad Abbasov's avatar
Nihad Abbasov committed
76 77 78
  },
  {
    "id": 2,
79
    "username": "jack_smith",
Nihad Abbasov's avatar
Nihad Abbasov committed
80 81
    "email": "jack@example.com",
    "name": "Jack Smith",
82
    "state": "blocked",
83
    "avatar_url": "http://localhost:3000/uploads/user/avatar/2/index.jpg",
84
    "web_url": "http://localhost:3000/jack_smith",
Nihad Abbasov's avatar
Nihad Abbasov committed
85
    "created_at": "2012-05-23T08:01:01Z",
86
    "is_admin": false,
Nihad Abbasov's avatar
Nihad Abbasov committed
87
    "bio": null,
88
    "location": null,
Nihad Abbasov's avatar
Nihad Abbasov committed
89 90 91
    "skype": "",
    "linkedin": "",
    "twitter": "",
Jerome Dalbert's avatar
Jerome Dalbert committed
92
    "website_url": "",
93
    "organization": "",
94 95
    "last_sign_in_at": null,
    "confirmed_at": "2012-05-30T16:53:06.148Z",
96
    "theme_id": 1,
97
    "color_scheme_id": 3,
98
    "projects_limit": 100,
Stan Hu's avatar
Stan Hu committed
99
    "current_sign_in_at": "2014-03-19T17:54:13Z",
100 101 102 103 104
    "identities": [],
    "can_create_group": true,
    "can_create_project": true,
    "two_factor_enabled": true,
    "external": false
Nihad Abbasov's avatar
Nihad Abbasov committed
105 106 107 108
  }
]
```

Ciro Santilli's avatar
Typo.  
Ciro Santilli committed
109
You can search for users by email or username with: `/users?search=John`
dosire's avatar
dosire committed
110

111 112 113 114 115 116 117 118 119 120 121
In addition, you can lookup users by username:

```
GET /users?username=:username
```

For example:

```
GET /users?username=jack_smith
```
122

Nihad Abbasov's avatar
Nihad Abbasov committed
123 124 125 126
## Single user

Get a single user.

Ciro Santilli's avatar
Ciro Santilli committed
127
### For user
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143

```
GET /users/:id
```

Parameters:

- `id` (required) - The ID of a user

```json
{
  "id": 1,
  "username": "john_smith",
  "name": "John Smith",
  "state": "active",
  "avatar_url": "http://localhost:3000/uploads/user/avatar/1/cd8.jpeg",
144
  "web_url": "http://localhost:3000/john_smith",
145 146 147
  "created_at": "2012-05-23T08:00:58Z",
  "is_admin": false,
  "bio": null,
148
  "location": null,
149 150 151
  "skype": "",
  "linkedin": "",
  "twitter": "",
152 153
  "website_url": "",
  "organization": ""
154 155 156
}
```

Ciro Santilli's avatar
Ciro Santilli committed
157
### For admin
158

Nihad Abbasov's avatar
Nihad Abbasov committed
159 160 161 162 163 164
```
GET /users/:id
```

Parameters:

165
- `id` (required) - The ID of a user
Nihad Abbasov's avatar
Nihad Abbasov committed
166 167 168 169

```json
{
  "id": 1,
170
  "username": "john_smith",
Nihad Abbasov's avatar
Nihad Abbasov committed
171 172
  "email": "john@example.com",
  "name": "John Smith",
173
  "state": "active",
174
  "avatar_url": "http://localhost:3000/uploads/user/avatar/1/index.jpg",
175
  "web_url": "http://localhost:3000/john_smith",
Nihad Abbasov's avatar
Nihad Abbasov committed
176
  "created_at": "2012-05-23T08:00:58Z",
177
  "is_admin": false,
Nihad Abbasov's avatar
Nihad Abbasov committed
178
  "bio": null,
179
  "location": null,
Nihad Abbasov's avatar
Nihad Abbasov committed
180 181 182
  "skype": "",
  "linkedin": "",
  "twitter": "",
Jerome Dalbert's avatar
Jerome Dalbert committed
183
  "website_url": "",
184
  "organization": "",
185 186
  "last_sign_in_at": "2012-06-01T11:41:01Z",
  "confirmed_at": "2012-05-23T09:05:22Z",
187
  "theme_id": 1,
188
  "color_scheme_id": 2,
189 190 191 192 193 194 195
  "projects_limit": 100,
  "current_sign_in_at": "2012-06-02T06:36:55Z",
  "identities": [
    {"provider": "github", "extern_uid": "2435223452345"},
    {"provider": "bitbucket", "extern_uid": "john.smith"},
    {"provider": "google_oauth2", "extern_uid": "8776128412476123468721346"}
  ],
196
  "can_create_group": true,
197
  "can_create_project": true,
198 199
  "two_factor_enabled": true,
  "external": false
Nihad Abbasov's avatar
Nihad Abbasov committed
200 201 202
}
```

203
## User creation
204 205

Creates a new user. Note only administrators can create new users.
206 207 208 209 210 211 212

```
POST /users
```

Parameters:

213 214 215 216 217
- `email` (required)            - Email
- `password` (required)         - Password
- `username` (required)         - Username
- `name` (required)             - Name
- `skype` (optional)            - Skype ID
Ciro Santilli's avatar
Ciro Santilli committed
218
- `linkedin` (optional)         - LinkedIn
219
- `twitter` (optional)          - Twitter account
Ciro Santilli's avatar
Ciro Santilli committed
220
- `website_url` (optional)      - Website URL
221
- `organization` (optional)     - Organization name
222 223 224
- `projects_limit` (optional)   - Number of projects user can create
- `extern_uid` (optional)       - External UID
- `provider` (optional)         - External provider name
Ciro Santilli's avatar
Ciro Santilli committed
225
- `bio` (optional)              - User's biography
226
- `location` (optional)         - User's location
227 228
- `admin` (optional)            - User is admin - true or false (default)
- `can_create_group` (optional) - User can create groups - true or false
229
- `confirm` (optional)          - Require confirmation - true (default) or false
230
- `external` (optional)         - Flags the user as external - true or false(default)
231

232
## User modification
233 234

Modifies an existing user. Only administrators can change attributes of a user.
235 236 237 238 239 240

```
PUT /users/:id
```

Parameters:
241

Ciro Santilli's avatar
Ciro Santilli committed
242 243 244 245 246 247 248 249
- `email`                       - Email
- `username`                    - Username
- `name`                        - Name
- `password`                    - Password
- `skype`                       - Skype ID
- `linkedin`                    - LinkedIn
- `twitter`                     - Twitter account
- `website_url`                 - Website URL
250
- `organization`                - Organization name
Ciro Santilli's avatar
Ciro Santilli committed
251 252 253 254
- `projects_limit`              - Limit projects each user can create
- `extern_uid`                  - External UID
- `provider`                    - External provider name
- `bio`                         - User's biography
255
- `location` (optional)         - User's location
Ciro Santilli's avatar
Ciro Santilli committed
256 257
- `admin` (optional)            - User is admin - true or false (default)
- `can_create_group` (optional) - User can create groups - true or false
258
- `external` (optional)         - Flags the user as external - true or false(default)
Ciro Santilli's avatar
Ciro Santilli committed
259 260 261 262

Note, at the moment this method does only return a 404 error,
even in cases where a 409 (Conflict) would be more appropriate,
e.g. when renaming the email address to some existing one.
263 264

## User deletion
265

Ciro Santilli's avatar
Ciro Santilli committed
266 267
Deletes a user. Available only for administrators.
This is an idempotent function, calling this function for a non-existent user id
268
still returns a status code `200 OK`.
Ciro Santilli's avatar
Ciro Santilli committed
269 270
The JSON response differs if the user was actually deleted or not.
In the former the user is returned and in the latter not.
271 272 273 274 275

```
DELETE /users/:id
```

276 277
Parameters:

278
- `id` (required) - The ID of the user
279

Nihad Abbasov's avatar
Nihad Abbasov committed
280 281
## Current user

282
Gets currently authenticated user.
Nihad Abbasov's avatar
Nihad Abbasov committed
283 284 285 286 287 288 289 290

```
GET /user
```

```json
{
  "id": 1,
291
  "username": "john_smith",
Nihad Abbasov's avatar
Nihad Abbasov committed
292 293
  "email": "john@example.com",
  "name": "John Smith",
294
  "state": "active",
295
  "avatar_url": "http://localhost:3000/uploads/user/avatar/1/index.jpg",
296
  "web_url": "http://localhost:3000/john_smith",
Nihad Abbasov's avatar
Nihad Abbasov committed
297
  "created_at": "2012-05-23T08:00:58Z",
298
  "is_admin": false,
Nihad Abbasov's avatar
Nihad Abbasov committed
299
  "bio": null,
300
  "location": null,
Nihad Abbasov's avatar
Nihad Abbasov committed
301 302 303
  "skype": "",
  "linkedin": "",
  "twitter": "",
Jerome Dalbert's avatar
Jerome Dalbert committed
304
  "website_url": "",
305
  "organization": "",
306 307
  "last_sign_in_at": "2012-06-01T11:41:01Z",
  "confirmed_at": "2012-05-23T09:05:22Z",
308 309
  "theme_id": 1,
  "color_scheme_id": 2,
310 311 312 313 314 315 316
  "projects_limit": 100,
  "current_sign_in_at": "2012-06-02T06:36:55Z",
  "identities": [
    {"provider": "github", "extern_uid": "2435223452345"},
    {"provider": "bitbucket", "extern_uid": "john_smith"},
    {"provider": "google_oauth2", "extern_uid": "8776128412476123468721346"}
  ],
Johannes Schleifenbaum's avatar
Johannes Schleifenbaum committed
317
  "can_create_group": true,
318
  "can_create_project": true,
319
  "two_factor_enabled": true,
320
  "external": false
Nihad Abbasov's avatar
Nihad Abbasov committed
321 322
}
```
323 324 325 326 327 328 329 330 331 332 333 334 335

## List SSH keys

Get a list of currently authenticated user's SSH keys.

```
GET /user/keys
```

```json
[
  {
    "id": 1,
Johannes Schleifenbaum's avatar
Johannes Schleifenbaum committed
336
    "title": "Public key",
337 338
    "key": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=",
    "created_at": "2014-08-01T14:47:39.080Z"
339 340 341
  },
  {
    "id": 3,
Johannes Schleifenbaum's avatar
Johannes Schleifenbaum committed
342
    "title": "Another Public key",
343 344
    "key": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=",
    "created_at": "2014-08-01T14:47:39.080Z"
345 346 347 348
  }
]
```

349 350
Parameters:

351
- **none**
352

353 354 355 356 357 358 359 360 361 362
## List SSH keys for user

Get a list of a specified user's SSH keys. Available only for admin

```
GET /users/:uid/keys
```

Parameters:

363
- `uid` (required) - id of specified user
364

365 366 367 368 369 370 371 372 373 374
## Single SSH key

Get a single key.

```
GET /user/keys/:id
```

Parameters:

375
- `id` (required) - The ID of an SSH key
376 377 378 379

```json
{
  "id": 1,
Johannes Schleifenbaum's avatar
Johannes Schleifenbaum committed
380
  "title": "Public key",
381 382
  "key": "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAiPWx6WM4lhHNedGfBpPJNPpZ7yKu+dnn1SJejgt4596k6YjzGGphH2TUxwKzxcKDKKezwkpfnxPkSMkuEspGRt/aZZ9wa++Oi7Qkr8prgHc4soW6NUlfDzpvZK2H5E7eQaSeP3SAwGmQKUFHCddNaP0L+hM7zhFNzjFvpaMgJw0=",
  "created_at": "2014-08-01T14:47:39.080Z"
383 384
}
```
385

386 387
## Add SSH key

388
Creates a new key owned by the currently authenticated user.
389 390 391 392 393 394 395

```
POST /user/keys
```

Parameters:

396
- `title` (required) - new SSH Key's title
Ciro Santilli's avatar
Ciro Santilli committed
397
- `key` (required)   - new SSH key
398

399 400 401 402 403 404 405 406 407
```json
{
  "created_at": "2015-01-21T17:44:33.512Z",
  "key": "ssh-dss AAAAB3NzaC1kc3MAAACBAMLrhYgI3atfrSD6KDas1b/3n6R/HP+bLaHHX6oh+L1vg31mdUqK0Ac/NjZoQunavoyzqdPYhFz9zzOezCrZKjuJDS3NRK9rspvjgM0xYR4d47oNZbdZbwkI4cTv/gcMlquRy0OvpfIvJtjtaJWMwTLtM5VhRusRuUlpH99UUVeXAAAAFQCVyX+92hBEjInEKL0v13c/egDCTQAAAIEAvFdWGq0ccOPbw4f/F8LpZqvWDydAcpXHV3thwb7WkFfppvm4SZte0zds1FJ+Hr8Xzzc5zMHe6J4Nlay/rP4ewmIW7iFKNBEYb/yWa+ceLrs+TfR672TaAgO6o7iSRofEq5YLdwgrwkMmIawa21FrZ2D9SPao/IwvENzk/xcHu7YAAACAQFXQH6HQnxOrw4dqf0NqeKy1tfIPxYYUZhPJfo9O0AmBW2S36pD2l14kS89fvz6Y1g8gN/FwFnRncMzlLY/hX70FSc/3hKBSbH6C6j8hwlgFKfizav21eS358JJz93leOakJZnGb8XlWvz1UJbwCsnR2VEY8Dz90uIk1l/UqHkA= loic@call",
  "title": "ABC",
  "id": 4
}
```

Loic Dachary's avatar
Loic Dachary committed
408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423
Will return created key with status `201 Created` on success. If an
error occurs a `400 Bad Request` is returned with a message explaining the error:

```json
{
  "message": {
    "fingerprint": [
      "has already been taken"
    ],
    "key": [
      "has already been taken"
    ]
  }
}
```

424 425 426 427 428 429 430 431 432 433
## Add SSH key for user

Create new key owned by specified user. Available only for admin

```
POST /users/:id/keys
```

Parameters:

Ciro Santilli's avatar
Ciro Santilli committed
434
- `id` (required)    - id of specified user
435
- `title` (required) - new SSH Key's title
Ciro Santilli's avatar
Ciro Santilli committed
436
- `key` (required)   - new SSH key
437

438
Will return created key with status `201 Created` on success, or `404 Not found` on fail.
439

440
## Delete SSH key for current user
441

Ciro Santilli's avatar
Ciro Santilli committed
442 443
Deletes key owned by currently authenticated user.
This is an idempotent function and calling it on a key that is already deleted
444
or not available results in `200 OK`.
445 446 447 448 449 450 451

```
DELETE /user/keys/:id
```

Parameters:

452
- `id` (required) - SSH key ID
453

454
## Delete SSH key for given user
455 456 457 458 459 460 461 462 463

Deletes key owned by a specified user. Available only for admin.

```
DELETE /users/:uid/keys/:id
```

Parameters:

464
- `uid` (required) - id of specified user
Ciro Santilli's avatar
Ciro Santilli committed
465
- `id` (required)  - SSH key ID
466

467
Will return `200 OK` on success, or `404 Not found` if either user or key cannot be found.
468

469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505
## List emails

Get a list of currently authenticated user's emails.

```
GET /user/emails
```

```json
[
  {
    "id": 1,
    "email": "email@example.com"
  },
  {
    "id": 3,
    "email": "email2@example.com"
  }
]
```

Parameters:

- **none**

## List emails for user

Get a list of a specified user's emails. Available only for admin

```
GET /users/:uid/emails
```

Parameters:

- `uid` (required) - id of specified user

Douwe Maan's avatar
Douwe Maan committed
506
## Single email
507

Douwe Maan's avatar
Douwe Maan committed
508
Get a single email.
509 510 511 512 513 514 515

```
GET /user/emails/:id
```

Parameters:

Douwe Maan's avatar
Douwe Maan committed
516
- `id` (required) - email ID
517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543

```json
{
  "id": 1,
  "email": "email@example.com"
}
```

## Add email

Creates a new email owned by the currently authenticated user.

```
POST /user/emails
```

Parameters:

- `email` (required) - email address

```json
{
  "id": 4,
  "email": "email@example.com"
}
```

Douwe Maan's avatar
Douwe Maan committed
544
Will return created email with status `201 Created` on success. If an
545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569
error occurs a `400 Bad Request` is returned with a message explaining the error:

```json
{
  "message": {
    "email": [
      "has already been taken"
    ]
  }
}
```

## Add email for user

Create new email owned by specified user. Available only for admin

```
POST /users/:id/emails
```

Parameters:

- `id` (required)    - id of specified user
- `email` (required) - email address

Douwe Maan's avatar
Douwe Maan committed
570
Will return created email with status `201 Created` on success, or `404 Not found` on fail.
571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598

## Delete email for current user

Deletes email owned by currently authenticated user.
This is an idempotent function and calling it on a email that is already deleted
or not available results in `200 OK`.

```
DELETE /user/emails/:id
```

Parameters:

- `id` (required) - email ID

## Delete email for given user

Deletes email owned by a specified user. Available only for admin.

```
DELETE /users/:uid/emails/:id
```

Parameters:

- `uid` (required) - id of specified user
- `id` (required)  - email ID

Douwe Maan's avatar
Douwe Maan committed
599
Will return `200 OK` on success, or `404 Not found` if either user or email cannot be found.
600

601 602 603 604 605 606 607 608 609 610 611 612
## Block user

Blocks the specified user.  Available only for admin.

```
PUT /users/:uid/block
```

Parameters:

- `uid` (required) - id of specified user

613
Will return `200 OK` on success, `404 User Not Found` is user cannot be found or
614
`403 Forbidden` when trying to block an already blocked user by LDAP synchronization.
615 616 617 618 619 620 621 622 623 624 625 626 627

## Unblock user

Unblocks the specified user.  Available only for admin.

```
PUT /users/:uid/unblock
```

Parameters:

- `uid` (required) - id of specified user

628 629
Will return `200 OK` on success, `404 User Not Found` is user cannot be found or
`403 Forbidden` when trying to unblock a user blocked by LDAP synchronization.
630 631 632

### Get user contribution events

Rémy Coutable's avatar
Rémy Coutable committed
633
Get the contribution events for the specified user, sorted from newest to oldest.
634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667

```
GET /users/:id/events
```

Parameters:

| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
| `id` | integer | yes | The ID of the user |

```bash
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v3/user/:id/events
```

Example response:

```json
[
  {
    "title": null,
    "project_id": 15,
    "action_name": "closed",
    "target_id": 830,
    "target_type": "Issue",
    "author_id": 1,
    "data": null,
    "target_title": "Public project search field",
    "author": {
      "name": "Dmitriy Zaporozhets",
      "username": "root",
      "id": 1,
      "state": "active",
      "avatar_url": "http://localhost:3000/uploads/user/avatar/1/fox_avatar.png",
668
      "web_url": "http://localhost:3000/root"
669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684
    },
    "author_username": "root"
  },
  {
    "title": null,
    "project_id": 15,
    "action_name": "opened",
    "target_id": null,
    "target_type": null,
    "author_id": 1,
    "author": {
      "name": "Dmitriy Zaporozhets",
      "username": "root",
      "id": 1,
      "state": "active",
      "avatar_url": "http://localhost:3000/uploads/user/avatar/1/fox_avatar.png",
685
      "web_url": "http://localhost:3000/root"
686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730
    },
    "author_username": "john",
    "data": {
      "before": "50d4420237a9de7be1304607147aec22e4a14af7",
      "after": "c5feabde2d8cd023215af4d2ceeb7a64839fc428",
      "ref": "refs/heads/master",
      "user_id": 1,
      "user_name": "Dmitriy Zaporozhets",
      "repository": {
        "name": "gitlabhq",
        "url": "git@dev.gitlab.org:gitlab/gitlabhq.git",
        "description": "GitLab: self hosted Git management software. \r\nDistributed under the MIT License.",
        "homepage": "https://dev.gitlab.org/gitlab/gitlabhq"
      },
      "commits": [
        {
          "id": "c5feabde2d8cd023215af4d2ceeb7a64839fc428",
          "message": "Add simple search to projects in public area",
          "timestamp": "2013-05-13T18:18:08+00:00",
          "url": "https://dev.gitlab.org/gitlab/gitlabhq/commit/c5feabde2d8cd023215af4d2ceeb7a64839fc428",
          "author": {
            "name": "Dmitriy Zaporozhets",
            "email": "dmitriy.zaporozhets@gmail.com"
          }
        }
      ],
      "total_commits_count": 1
    },
    "target_title": null
  },
  {
    "title": null,
    "project_id": 15,
    "action_name": "closed",
    "target_id": 840,
    "target_type": "Issue",
    "author_id": 1,
    "data": null,
    "target_title": "Finish & merge Code search PR",
    "author": {
      "name": "Dmitriy Zaporozhets",
      "username": "root",
      "id": 1,
      "state": "active",
      "avatar_url": "http://localhost:3000/uploads/user/avatar/1/fox_avatar.png",
731
      "web_url": "http://localhost:3000/root"
732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754
    },
    "author_username": "root"
  },
  {
    "title": null,
    "project_id": 15,
    "action_name": "commented on",
    "target_id": 1312,
    "target_type": "Note",
    "author_id": 1,
    "data": null,
    "target_title": null,
    "created_at": "2015-12-04T10:33:58.089Z",
    "note": {
      "id": 1312,
      "body": "What an awesome day!",
      "attachment": null,
      "author": {
        "name": "Dmitriy Zaporozhets",
        "username": "root",
        "id": 1,
        "state": "active",
        "avatar_url": "http://localhost:3000/uploads/user/avatar/1/fox_avatar.png",
755
        "web_url": "http://localhost:3000/root"
756 757 758 759 760 761 762 763 764 765 766 767 768 769
      },
      "created_at": "2015-12-04T10:33:56.698Z",
      "system": false,
      "upvote": false,
      "downvote": false,
      "noteable_id": 377,
      "noteable_type": "Issue"
    },
    "author": {
      "name": "Dmitriy Zaporozhets",
      "username": "root",
      "id": 1,
      "state": "active",
      "avatar_url": "http://localhost:3000/uploads/user/avatar/1/fox_avatar.png",
770
      "web_url": "http://localhost:3000/root"
771 772 773 774 775
    },
    "author_username": "root"
  }
]
```