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
0
Merge Requests
0
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
Tatuya Kamada
gitlab-ce
Commits
658f260e
Commit
658f260e
authored
Nov 29, 2012
by
Nihad Abbasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add docs for notes API
parent
961cb285
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
132 additions
and
0 deletions
+132
-0
app/views/help/api.html.haml
app/views/help/api.html.haml
+11
-0
doc/api/notes.md
doc/api/notes.md
+121
-0
No files found.
app/views/help/api.html.haml
View file @
658f260e
...
...
@@ -21,6 +21,8 @@
=
link_to
"Issues"
,
"#issues"
,
'data-toggle'
=>
'tab'
%li
=
link_to
"Milestones"
,
"#milestones"
,
'data-toggle'
=>
'tab'
%li
=
link_to
"Notes"
,
"#notes"
,
'data-toggle'
=>
'tab'
.tab-content
.tab-pane.active
#README
...
...
@@ -94,3 +96,12 @@
.file_content.wiki
=
preserve
do
=
markdown
File
.
read
(
Rails
.
root
.
join
(
"doc"
,
"api"
,
"milestones.md"
))
.tab-pane
#notes
.file_holder
.file_title
%i
.icon-file
Notes
.file_content.wiki
=
preserve
do
=
markdown
File
.
read
(
Rails
.
root
.
join
(
"doc"
,
"api"
,
"notes.md"
))
doc/api/notes.md
0 → 100644
View file @
658f260e
## 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
,
"email"
:
"john@example.com"
,
"name"
:
"John Smith"
,
"blocked"
:
false
,
"created_at"
:
"2012-05-23T08:00:58Z"
},
"updated_at"
:
"2012-11-27T19:16:44Z"
,
"created_at"
:
"2012-11-27T19:16:44Z"
}
]
```
Parameters:
+
`id`
(required) - The ID or code name of a project
### List issue notes
Get a list of issue notes.
```
GET /projects/:id/issues/:issue_id/notes
```
Parameters:
+
`id`
(required) - The ID or code name of a project
+
`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:
+
`id`
(required) - The ID or code name of a project
+
`snippet_id`
(required) - The ID of a snippet
## Single note
### Single issue note
Get an issue note.
```
GET /projects/:id/issues/:issue_id/:notes/:note_id
```
Parameters:
+
`id`
(required) - The ID or code name of a project
+
`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:
+
`id`
(required) - The ID or code name of a project
+
`snippet_id`
(required) - The ID of a project snippet
+
`note_id`
(required) - The ID of an snippet note
## New note
### New issue note
Create a new issue note.
```
POST /projects/:id/issues/:issue_id/notes
```
Parameters:
+
`id`
(required) - The ID or code name of a project
+
`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:
+
`id`
(required) - The ID or code name of a project
+
`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.
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