j3k0 / ganomede-invitations

Ganomede Invitations
0 stars 0 forks source link

Delete invitation #2

Closed j3k0 closed 9 years ago

j3k0 commented 9 years ago

src/invitations-api.coffee is incomplete, needs to support deleting an invitation.

Tasks:

Notes:

Additional instructions:

elmigranto commented 9 years ago

Since we reply to successful DELETE with HTTP 204 (No Content), it is not possible to send any payload. {ok: true} is in the specs, though.

Are we ok with just res.send(204)?

I also reply with 404 to requests with non-existing invitation ID and with 403 to request with wrong users (authToken is valid, but username does not match from or to). Is this ok?

elmigranto commented 9 years ago

This is ready. Take a look at this first, though.