motionbank / piecemaker2-api

An api at the core of piecemaker
7 stars 0 forks source link

PUT /group/:id/user/:id route does not return status #102

Closed fjenett closed 10 years ago

fjenett commented 10 years ago

POST and DELETE return {status:true} while PUT returns user_has_event_group object:

https://github.com/motionbank/piecemaker2-api/blob/master/api/event_groups.rb#L367

https://github.com/motionbank/piecemaker2-api/blob/master/api/event_groups.rb#L328 https://github.com/motionbank/piecemaker2-api/blob/master/api/event_groups.rb#L405

mattes commented 10 years ago

What is the expected behaviour?

  1. POST/PUT/DELETE returns {status:true}
  2. POST/PUT/DELETE returns @item
fjenett commented 10 years ago

@item ... as with the other routes