Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 877 Bytes

readme.md

File metadata and controls

49 lines (29 loc) · 877 Bytes

turns API

Local Setup

$ git clone https://github.com/jshawl/turns-api.git
$ cd turns-api
$ bundle install
$ rake db:create
$ rake db:migrate
$ rails s

Public API

post /users/sign_in

get /groups

Lists the current users groups, where the current user is defined by an authentication_token query paramater in the url.

post /groups

Creates a new group. Required paramaters are name.

delete /groups/:id

Deletes a group.

patch /groups/:id

Updates a group. Required paramaters are name.

get /groups/:id

Returns information about a group identified by its id.

get /groups/:group_id/tasks

Lists all tasks that belong to one group.

get /groups/:group_id/tasks/:id

Lists a specific groups' task.

get /groups/:group_id/tasks/:task_id/events

Lists the events for a given task.