From 9a4974b7603c4df4b9b78970fb96e185ba97c250 Mon Sep 17 00:00:00 2001 From: Nihad Abbasov Date: Thu, 29 Nov 2012 11:21:14 -0800 Subject: [PATCH] correct example --- lib/api/notes.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/api/notes.rb b/lib/api/notes.rb index d2857f3d..9b39ff4c 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