Closed j3k0 closed 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?
This is ready. Take a look at this first, though.
src/invitations-api.coffee
is incomplete, needs to support deleting an invitation.Tasks:
test/tests-invitations-api.coffee
src/invitations-api.coffee
Notes:
fakeredis
(https://github.com/hdachev/fakeredis) and other mock classes found intests/
folder.POST
is implemented for inspiration.Additional instructions:
make
to execute the tests.make coverage
and open doc/coverage.html to check your progress.