Casica
Casica API Ruby Wrapper
Installation
Add this line to your application's Gemfile:
gem 'casica'
And then execute:
$ bundle
Or install it yourself as:
$ gem install casica
Usage
see also: https://casica.io/api_doc
Initialize
client = Casica::Client.new(token: "<access_token>")
Project API
GET /api/projects
client.projects
Story API
GET /api/projects/<project_id>/stories
client.stories(project_id: <project_id>)
POST /api/projects/<project_id>/stories
client.create_story(project_id: <project_id>, attributes: { title: 'Story Title' })
PATCH /api/projects/<project_id>/stories/<story_serial_num>
client.update_story(project_id: <project_id>, story_serial_num: <story_serial_num>, attributes: { title: 'Updated Story Title' })
DELETE /api/projects/<project_id>/stories/<story_serial_num>
client.destroy_story(project_id: <project_id>, story_serial_num: <story_serial_num>)
PATCH /api/projects/<project_id>/stories/statuses
client.update_story_status(project_id: <project_id>, from_status: 'merged', to_status: 'stg_deployed')
Task API
GET /api/projects/<project_id>/stories/<story_serial_num>/tasks
client.tasks(project_id: <project_id>, story_serial_num: <story_serial_num>)
POST /api/projects/<project_id>/stories/<story_serial_num>/tasks
client.create_task(project_id: <project_id>, story_serial_num: <story_serial_num>, attributes: { title: 'Task Title' })
PATCH /api/projects/<project_id>/stories/<story_serial_num>/tasks/<task_serial_num>
client.update_task(project_id: <project_id>, story_serial_num: <story_serial_num>, task_serial_num: <task_serial_num>, attributes: { title: 'Updated Task Title' })
DELETE /api/projects/<project_id>/stories/<story_serial_num>/tasks/<task_serial_num>
client.destroy_task(project_id: <project_id>, story_serial_num: <story_serial_num>, task_serial_num: <task_serial_num>)
PATCH /api/projects/<project_id>/tasks/statuses
client.update_task_status(project_id: <project_id>, from_status: 'merged', to_status: 'stg_deployed')
Contributing
- Fork it ( https://github.com/startup-technology/casica-ruby/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request