mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
18 lines
751 B
Ruby
18 lines
751 B
Ruby
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_rich_todo,
|
|
:expects => [{:username => :string}, {:token => :string}, {:default_context_id => :int}, {:description => :string}, {:notes => :string}],
|
|
: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
|