module Bcx
module Resources
class Todolist < Rapidash::Base
resource :todos, class_name: 'Bcx::Resources::Todo'
collection :completed
end
end
end
Provides access to todolist resoource both at the client level and per-project
GET /projects/123/todolists.json
client.projects(123).todolists!
GET /projects/1/todolists/completed.json
client.projects(123).todolists.completed!
GET /todolists.json
client.todolists!
GET /todolists/completed.json
client.todolists.completed!
GET /projects/123/todolists/456.json
client.projects(123).todolists!(456)
POST /projects/1/todolists.json
client.projects(123).todolists.create!(name: 'My todolist', description: 'This is a todolist')
PUT /projects/123/todolists/456.json
client.projects(123).todolists(456).update!(name: 'Updated todolist')
DELETE /projects/123/todolists/456.json
client.projects(123).todolists(456).delete!
module Bcx
module Resources
class Todolist < Rapidash::Base
resource :todos, class_name: 'Bcx::Resources::Todo'
collection :completed
end
end
end