4 ms·
DELETE simply means subsequent calls to GET should not return that object. So you can call DELETE on an account then your next GET returns a 404 because you de
by pc86 10y ago
DELETE simply means subsequent calls to GET should not return that object.
So you can call DELETE on an account then your next GET returns a 404 because you deleted it from the database, or you can call DELETE and your next GET returns a 405 because the account has been closed and you're not allowed to call GET on a closed account. Both are totally within the spirit of what DELETE is supposed to accomplish, and I'm sure there are a half dozen other ways to architect it completely within the spirit of DELETE and REST as well.