2012-11-29 21:32:05 +01:00
|
|
|
## List notes
|
|
|
|
|
|
|
|
### List project wall notes
|
|
|
|
|
|
|
|
Get a list of project wall notes.
|
|
|
|
|
|
|
|
```
|
|
|
|
GET /projects/:id/notes
|
|
|
|
```
|
|
|
|
|
|
|
|
```json
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"id": 522,
|
|
|
|
"body": "The solution is rather tricky",
|
|
|
|
"author": {
|
|
|
|
"id": 1,
|
2012-12-10 23:46:31 +01:00
|
|
|
"username": "john_smith",
|
2012-11-29 21:32:05 +01:00
|
|
|
"email": "john@example.com",
|
|
|
|
"name": "John Smith",
|
|
|
|
"blocked": false,
|
|
|
|
"created_at": "2012-05-23T08:00:58Z"
|
|
|
|
},
|
2012-11-29 23:41:24 +01:00
|
|
|
"created_at": "2012-11-27T19:16:44Z"
|
2012-11-29 21:32:05 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
2012-12-21 18:47:04 +01:00
|
|
|
+ `id` (required) - The ID of a project
|
2012-11-29 21:32:05 +01:00
|
|
|
|
2013-01-31 07:46:59 +01:00
|
|
|
### List merge request notes
|
|
|
|
|
|
|
|
Get a list of merge request notes.
|
|
|
|
|
|
|
|
```
|
|
|
|
GET /projects/:id/merge_requests/:merge_request_id/notes
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
|
|
|
+ `id` (required) - The ID of a project
|
|
|
|
+ `merge_request_id` (required) - The ID of an merge request
|
|
|
|
|
2012-11-29 21:32:05 +01:00
|
|
|
### List issue notes
|
|
|
|
|
|
|
|
Get a list of issue notes.
|
|
|
|
|
|
|
|
```
|
|
|
|
GET /projects/:id/issues/:issue_id/notes
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
2012-12-21 18:47:04 +01:00
|
|
|
+ `id` (required) - The ID of a project
|
2012-11-29 21:32:05 +01:00
|
|
|
+ `issue_id` (required) - The ID of an issue
|
|
|
|
|
|
|
|
### List snippet notes
|
|
|
|
|
|
|
|
Get a list of snippet notes.
|
|
|
|
|
|
|
|
```
|
|
|
|
GET /projects/:id/snippets/:snippet_id/notes
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
2012-12-21 18:47:04 +01:00
|
|
|
+ `id` (required) - The ID of a project
|
2012-11-29 21:32:05 +01:00
|
|
|
+ `snippet_id` (required) - The ID of a snippet
|
|
|
|
|
|
|
|
## Single note
|
|
|
|
|
2012-12-01 11:20:45 +01:00
|
|
|
### Single wall note
|
|
|
|
|
|
|
|
Get a wall note.
|
|
|
|
|
|
|
|
```
|
|
|
|
GET /projects/:id/notes/:note_id
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
2012-12-21 18:47:04 +01:00
|
|
|
+ `id` (required) - The ID of a project
|
2012-12-01 11:20:45 +01:00
|
|
|
+ `note_id` (required) - The ID of a wall note
|
|
|
|
|
2012-11-29 21:32:05 +01:00
|
|
|
### Single issue note
|
|
|
|
|
|
|
|
Get an issue note.
|
|
|
|
|
|
|
|
```
|
|
|
|
GET /projects/:id/issues/:issue_id/:notes/:note_id
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
2012-12-21 18:47:04 +01:00
|
|
|
+ `id` (required) - The ID of a project
|
2012-11-29 21:32:05 +01:00
|
|
|
+ `issue_id` (required) - The ID of a project issue
|
|
|
|
+ `note_id` (required) - The ID of an issue note
|
|
|
|
|
|
|
|
### Single snippet note
|
|
|
|
|
|
|
|
Get a snippet note.
|
|
|
|
|
|
|
|
```
|
|
|
|
GET /projects/:id/issues/:snippet_id/:notes/:note_id
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
2012-12-21 18:47:04 +01:00
|
|
|
+ `id` (required) - The ID of a project
|
2012-11-29 21:32:05 +01:00
|
|
|
+ `snippet_id` (required) - The ID of a project snippet
|
|
|
|
+ `note_id` (required) - The ID of an snippet note
|
|
|
|
|
|
|
|
## New note
|
|
|
|
|
2012-11-30 00:52:56 +01:00
|
|
|
### New wall note
|
|
|
|
|
|
|
|
Create a new wall note.
|
|
|
|
|
|
|
|
```
|
|
|
|
POST /projects/:id/notes
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
2012-12-21 18:47:04 +01:00
|
|
|
+ `id` (required) - The ID of a project
|
2012-11-30 00:52:56 +01:00
|
|
|
+ `body` (required) - The content of a note
|
|
|
|
|
|
|
|
Will return created note with status `201 Created` on success, or `404 Not found` on fail.
|
|
|
|
|
|
|
|
|
2012-11-29 21:32:05 +01:00
|
|
|
### New issue note
|
|
|
|
|
|
|
|
Create a new issue note.
|
|
|
|
|
|
|
|
```
|
|
|
|
POST /projects/:id/issues/:issue_id/notes
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
2012-12-21 18:47:04 +01:00
|
|
|
+ `id` (required) - The ID of a project
|
2012-11-29 21:32:05 +01:00
|
|
|
+ `issue_id` (required) - The ID of an issue
|
|
|
|
+ `body` (required) - The content of a note
|
|
|
|
|
|
|
|
Will return created note with status `201 Created` on success, or `404 Not found` on fail.
|
|
|
|
|
|
|
|
### New snippet note
|
|
|
|
|
|
|
|
Create a new snippet note.
|
|
|
|
|
|
|
|
```
|
|
|
|
POST /projects/:id/snippets/:snippet_id/notes
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
2012-12-21 18:47:04 +01:00
|
|
|
+ `id` (required) - The ID of a project
|
2012-11-29 21:32:05 +01:00
|
|
|
+ `snippet_id` (required) - The ID of an snippet
|
|
|
|
+ `body` (required) - The content of a note
|
|
|
|
|
|
|
|
Will return created note with status `201 Created` on success, or `404 Not found` on fail.
|