diff options
author | Valeriy Sizov <vsv2711@gmail.com> | 2012-10-25 13:13:01 +0300 |
---|---|---|
committer | Valeriy Sizov <vsv2711@gmail.com> | 2012-10-25 13:13:01 +0300 |
commit | e6cdfb607a3ac87d110d5d200b5900f531d1669e (patch) | |
tree | 7c89e29e8d9f53e38785c2b6faa47bbe2d1c9396 /lib/api/merge_requests.rb | |
parent | 77bc1101074fe6458f0b0beaf19ef6663f735806 (diff) | |
download | gitlab-ce-e6cdfb607a3ac87d110d5d200b5900f531d1669e.tar.gz |
API: tests for merge_requests
Diffstat (limited to 'lib/api/merge_requests.rb')
-rw-r--r-- | lib/api/merge_requests.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/api/merge_requests.rb b/lib/api/merge_requests.rb index c9377ad2053..b2f4fe0c961 100644 --- a/lib/api/merge_requests.rb +++ b/lib/api/merge_requests.rb @@ -11,7 +11,7 @@ module Gitlab # id (required) - The ID or code name of a project # # Example: - # GET /:id/merge_requests + # GET /projects/:id/merge_requests # get ":id/merge_requests" do authorize! :read_merge_request, user_project @@ -26,7 +26,7 @@ module Gitlab # merge_request_id (required) - The ID of MR # # Example: - # GET /:id/merge_request/:merge_request_id + # GET /projects/:id/merge_request/:merge_request_id # get ":id/merge_request/:merge_request_id" do merge_request = user_project.merge_requests.find(params[:merge_request_id]) @@ -47,7 +47,7 @@ module Gitlab # title (required) - Title of MR # # Example: - # POST /:id/merge_requests + # POST /projects/:id/merge_requests # post ":id/merge_requests" do attrs = attributes_for_keys [:source_branch, :target_branch, :assignee_id, :title] @@ -75,7 +75,7 @@ module Gitlab # title - Title of MR # closed - Status of MR. true - closed # Example: - # PUT /:id/merge_request/:merge_request_id + # PUT /projects/:id/merge_request/:merge_request_id # put ":id/merge_request/:merge_request_id" do attrs = attributes_for_keys [:source_branch, :target_branch, :assignee_id, :title, :closed] @@ -99,7 +99,7 @@ module Gitlab # merge_request_id (required) - ID of MR # note (required) - Text of comment # Examples: - # POST /:id/merge_request/:merge_request_id/comments + # POST /projects/:id/merge_request/:merge_request_id/comments # post ":id/merge_request/:merge_request_id/comments" do merge_request = user_project.merge_requests.find(params[:merge_request_id]) |