add new_todo API call that specifies project_id, too

Signed-off-by: Reinier Balt <lrbalt@gmail.com>
This commit is contained in:
chris erway 2009-03-12 13:05:55 +08:00 committed by Reinier Balt
parent b1256ab6e9
commit 6b8043d656
2 changed files with 11 additions and 0 deletions

View file

@ -2,6 +2,10 @@ class TodoApi < ActionWebService::API::Base
api_method :new_todo,
:expects => [{:username => :string}, {:token => :string}, {:context_id => :int}, {:description => :string}, {:notes => :string}],
:returns => [:int]
api_method :new_todo_for_project,
:expects => [{:username => :string}, {:token => :string}, {:context_id => :int}, {:project_id => :int}, {:description => :string}, {:notes => :string}],
:returns => [:int]
api_method :new_rich_todo,
:expects => [{:username => :string}, {:token => :string}, {:default_context_id => :int}, {:description => :string}, {:notes => :string}],