Sha256: 12668e604928b15daee3bf5fa81f3a2faa283b38a6af0b8d6bb674af2c4a454e
Contents?: true
Size: 1.3 KB
Versions: 4
Compression:
Stored size: 1.3 KB
Contents
# ## Todolists # # Provides access to todolist resoource both at the client level and per-project # # #### Get all todolists for a project # `GET /projects/123/todolists.json` # # client.projects(123).todolists! # # #### Get all completed todolists for a project # `GET /projects/1/todolists/completed.json` # # client.projects(123).todolists.completed! # # #### Get todolists for all projects # `GET /todolists.json` # # client.todolists! # # #### Get completed todolists for all projects # `GET /todolists/completed.json` # # client.todolists.completed! # # #### Get specific todolist including the todos # `GET /projects/123/todolists/456.json` # # client.projects(123).todolists!(456) # # #### Create a new todolist # `POST /projects/1/todolists.json` # # client.projects(123).todolists.create!(name: 'My todolist', description: 'This is a todolist') # # #### Update an existing todolist # `PUT /projects/123/todolists/456.json` # # client.projects(123).todolists(456).update!(name: 'Updated todolist') # # #### Delete a 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
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bcx-0.3.0 | lib/bcx/resources/todolist.rb |
bcx-0.2.1 | lib/bcx/resources/todolist.rb |
bcx-0.2.0 | lib/bcx/resources/todolist.rb |
bcx-0.1.1 | lib/bcx/resources/todolist.rb |