BlairAllegroTech / js-data-jsonapi

JsonApi Adapter for js-data
MIT License
15 stars 5 forks source link

Use Self URL for Destroy #45

Closed rgant closed 7 years ago

rgant commented 7 years ago

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.

BlairAllegroTech commented 7 years ago

Thank you again