API: get a single wall note

This commit is contained in:
Nihad Abbasov 2012-12-01 02:20:45 -08:00
parent b17e94c37b
commit 270a43370a
3 changed files with 33 additions and 0 deletions

View file

@ -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: