module Bcx
module Resources
class Todo < Rapidash::Base
resource :comments
end
end
end
Provides access to todolist resoource both at the client level and per-project
GET /todolists/1.json
todolist = client.todolists!(1)
todolist.todos.remaining
todolist.todos.completed
GET /projects/1/todos/2.json
client.projects(1).todos!(2)
POST /projects/1/todolists/2/todos.json
client.projects(1).todolists(2).todos.create!(content: 'Update copy text')
PUT /projects/1/todos/2.json
client.projects(1).todos(2).update!(completed: true)
DELETE /projects/1/todos/2.json
client.projects(1).todos(2).delete!
module Bcx
module Resources
class Todo < Rapidash::Base
resource :comments
end
end
end