Commit 9a4974b7603c4df4b9b78970fb96e185ba97c250
1 parent
01eab583
Exists in
master
and in
4 other branches
correct example
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
lib/api/notes.rb
| @@ -27,7 +27,8 @@ module Gitlab | @@ -27,7 +27,8 @@ module Gitlab | ||
| 27 | # id (required) - The ID or code name of a project | 27 | # id (required) - The ID or code name of a project |
| 28 | # noteable_id (required) - The ID of an issue or snippet | 28 | # noteable_id (required) - The ID of an issue or snippet |
| 29 | # Example Request: | 29 | # Example Request: |
| 30 | - # GET /projects/:id/noteable/:noteable_id/notes | 30 | + # GET /projects/:id/issues/:noteable_id/notes |
| 31 | + # GET /projects/:id/snippets/:noteable_id/notes | ||
| 31 | get ":id/#{noteables_str}/:#{noteable_id_str}/notes" do | 32 | get ":id/#{noteables_str}/:#{noteable_id_str}/notes" do |
| 32 | @noteable = user_project.send(:"#{noteables_str}").find(params[:"#{noteable_id_str}"]) | 33 | @noteable = user_project.send(:"#{noteables_str}").find(params[:"#{noteable_id_str}"]) |
| 33 | present paginate(@noteable.notes), with: Entities::Note | 34 | present paginate(@noteable.notes), with: Entities::Note |