Angular
Delightful Data APIs With HAPI.JS

Editing & Deleting Data

PRO

Our API wouldn't be complete unless we gave users a way to edit and delete data. In our case, since we're faking out the data layer right now, we can simply edit the array of airplanes data on the server. Let's create two endpoints (one responding to a PATCH request and another responding to a DELETE request) which will take care of those actions.

 

I finished! On to the next chapter