summaryrefslogtreecommitdiff
path: root/lib/api/notes.rb
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2012-11-29 11:21:14 -0800
committerNihad Abbasov <narkoz.2008@gmail.com>2012-11-29 12:11:00 -0800
commit9a4974b7603c4df4b9b78970fb96e185ba97c250 (patch)
treebb10a9281a483a52c725bfd7e3fa56b3b9bb69a4 /lib/api/notes.rb
parent01eab583d0d16b44554a9790fb502f14ea84faf0 (diff)
downloadgitlab-ce-9a4974b7603c4df4b9b78970fb96e185ba97c250.tar.gz
correct example
Diffstat (limited to 'lib/api/notes.rb')
-rw-r--r--lib/api/notes.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/notes.rb b/lib/api/notes.rb
index d2857f3d2c7..9b39ff4c88f 100644
--- a/lib/api/notes.rb
+++ b/lib/api/notes.rb
@@ -27,7 +27,8 @@ module Gitlab
# id (required) - The ID or code name of a project
# noteable_id (required) - The ID of an issue or snippet
# Example Request:
- # GET /projects/:id/noteable/:noteable_id/notes
+ # GET /projects/:id/issues/:noteable_id/notes
+ # GET /projects/:id/snippets/:noteable_id/notes
get ":id/#{noteables_str}/:#{noteable_id_str}/notes" do
@noteable = user_project.send(:"#{noteables_str}").find(params[:"#{noteable_id_str}"])
present paginate(@noteable.notes), with: Entities::Note