Angular
Delightful Data APIs With HAPI.JS

Editing & Deleting Data

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
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