diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-08-29 08:45:00 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-08-29 08:45:00 -0400 |
commit | 8a49cdc3b44579e64d50973df1a1d075e2766b97 (patch) | |
tree | 3f97db410fabe9bdc8504baf8bb9eb2ba6f6263d /lib/api/milestones.rb | |
parent | 8d192adb382572a210f30cdcd6d42061b5e23353 (diff) | |
download | gitlab-ce-8a49cdc3b44579e64d50973df1a1d075e2766b97.tar.gz |
Add milestone API docs to doc/README and views/help/api
Also removes `closed` attribute option from create action.
Diffstat (limited to 'lib/api/milestones.rb')
-rw-r--r-- | lib/api/milestones.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/api/milestones.rb b/lib/api/milestones.rb index 1ddcd1f8c89..f537b8e5bf2 100644 --- a/lib/api/milestones.rb +++ b/lib/api/milestones.rb @@ -33,15 +33,13 @@ module Gitlab # title (required) - The title of the milestone # description (optional) - The description of the milestone # due_date (optional) - The due date of the milestone - # closed (optional) - The status of the milestone # Example Request: # POST /projects/:id/milestones post ":id/milestones" do @milestone = user_project.milestones.new( title: params[:title], description: params[:description], - due_date: params[:due_date], - closed: (params[:closed] || false) + due_date: params[:due_date] ) if @milestone.save @@ -55,6 +53,7 @@ module Gitlab # # Parameters: # id (required) - The ID or code name of a project + # milestone_id (required) - The ID of a project milestone # title (optional) - The title of a milestone # description (optional) - The description of a milestone # due_date (optional) - The due date of a milestone |