Commit 9a4974b7603c4df4b9b78970fb96e185ba97c250

Authored by Nihad Abbasov
1 parent 01eab583

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 27 # id (required) - The ID or code name of a project
28 28 # noteable_id (required) - The ID of an issue or snippet
29 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 32 get ":id/#{noteables_str}/:#{noteable_id_str}/notes" do
32 33 @noteable = user_project.send(:"#{noteables_str}").find(params[:"#{noteable_id_str}"])
33 34 present paginate(@noteable.notes), with: Entities::Note
... ...