Changes the destroy method to behave similar to the update method and use the self link for the endpoint.
My test isn't ideal as I don't really understand where the data for the tests comes from, but I copied the updates DS#Save test to the destroy section with minor modifications so it tests the URL like I wanted. There are comments in there showing how I don't really understand what is going on with the responses.
I also made some lint and whitespace changes that could be ignored if you don't feel like merging them.
Changes the destroy method to behave similar to the update method and use the self link for the endpoint.
My test isn't ideal as I don't really understand where the data for the tests comes from, but I copied the updates DS#Save test to the destroy section with minor modifications so it tests the URL like I wanted. There are comments in there showing how I don't really understand what is going on with the responses.
I also made some lint and whitespace changes that could be ignored if you don't feel like merging them.