Our Symfony2 and FosRestBundle API wouldn't be complete if we couldn't DELETE records.
With all the ground work done in the previous videos, adding DELETE functionality is super simple.
Following on from previous videos, we are going to start with our failing tests and then work through to make them pass. There are only two tests for this verb at present - checking that DELETE on a none existent record returns a 404 code, and that a DELETE on a valid record returns a 204 code.
By the end of this video you will have implemented DELETE into your RESTful API.
If you have found this video helpful, please consider sharing. I really appreciate it.
|3||GET Handled, thin Controllers and fun with Services||17:49|
|4||Automatic Route Generation||11:32|
|5||GETting a Collection||12:53|
|7||Acceptance Testing our POST Method||05:40|
|8||Unit Testing our Symfony Form||22:55|
|9||Implementing and Testing the Form Handler||03:01|
|10||POST Form Handler Implementation||11:12|