summaryrefslogtreecommitdiff
path: root/lib/api/notes.rb
diff options
context:
space:
mode:
authorNihad Abbasov <narkoz.2008@gmail.com>2012-12-01 02:20:45 -0800
committerNihad Abbasov <narkoz.2008@gmail.com>2012-12-01 02:20:45 -0800
commit270a43370a4cd9e5f222ad707f68f42088d5ae06 (patch)
tree3925239a14c96c145860eacec4749df146f85438 /lib/api/notes.rb
parentb17e94c37bd5868c44f3aa085bfc3e44e227dc07 (diff)
downloadgitlab-ce-270a43370a4cd9e5f222ad707f68f42088d5ae06.tar.gz
API: get a single wall note
Diffstat (limited to 'lib/api/notes.rb')
-rw-r--r--lib/api/notes.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/api/notes.rb b/lib/api/notes.rb
index b47ff5c300f..a3e1858458d 100644
--- a/lib/api/notes.rb
+++ b/lib/api/notes.rb
@@ -17,6 +17,18 @@ module Gitlab
present paginate(@notes), with: Entities::Note
end
+ # Get a single project wall note
+ #
+ # Parameters:
+ # id (required) - The ID or code name of a project
+ # note_id (required) - The ID of a note
+ # Example Request:
+ # GET /projects/:id/notes/:note_id
+ get ":id/notes/:note_id" do
+ @note = user_project.common_notes.find(params[:note_id])
+ present @note, with: Entities::Note
+ end
+
# Create a new project wall note
#
# Parameters: