GALAglobal / TAPICC-API-implementation

TAPICC API implementation using node.js framework sails.js
Other
6 stars 1 forks source link

Return for deletion #55

Closed ysavourel closed 5 years ago

ysavourel commented 6 years ago

Currently a successful call to DELETE returns the resource and 200. That is an option.

But usually it's a lot easier for the implementation to return 204 (NoContent) with no resource at all on success. After all: it has been deleted.

It can also return 202 (Accepted) with the resource if the deletion request has been accepted by the server, but not done yet (if it's in a queue for example).

Alino commented 5 years ago

updated in swagger https://github.com/GALAglobal/TAPICC-API-implementation/commit/3ab715f157c617de707ff392214e2732641acc0c