2007-03-30 04:36:52 +00:00
|
|
|
class TodoApi < ActionWebService::API::Base
|
|
|
|
|
api_method :new_todo,
|
2007-09-26 11:40:14 +00:00
|
|
|
:expects => [{:username => :string}, {:token => :string}, {:context_id => :int}, {:description => :string}, {:notes => :string}],
|
2007-03-30 04:36:52 +00:00
|
|
|
:returns => [:int]
|
2009-03-12 13:05:55 +08:00
|
|
|
|
|
|
|
|
api_method :new_todo_for_project,
|
|
|
|
|
:expects => [{:username => :string}, {:token => :string}, {:context_id => :int}, {:project_id => :int}, {:description => :string}, {:notes => :string}],
|
|
|
|
|
:returns => [:int]
|
2007-03-30 04:36:52 +00:00
|
|
|
|
|
|
|
|
api_method :new_rich_todo,
|
2007-09-26 11:40:14 +00:00
|
|
|
:expects => [{:username => :string}, {:token => :string}, {:default_context_id => :int}, {:description => :string}, {:notes => :string}],
|
2007-03-30 04:36:52 +00:00
|
|
|
:returns => [:int]
|
|
|
|
|
|
|
|
|
|
api_method :list_contexts,
|
|
|
|
|
:expects => [{:username => :string}, {:token => :string}],
|
|
|
|
|
:returns => [[Context]]
|
|
|
|
|
|
|
|
|
|
api_method :list_projects,
|
|
|
|
|
:expects => [{:username => :string}, {:token => :string}],
|
|
|
|
|
:returns => [[Project]]
|
|
|
|
|
|
|
|
|
|
end
|