Rails 6 API Tutorial - Destroy Controller Action p.6

preview_player
Показать описание
In this video series we will build a Rails API from scratch. Backend APIs are useful for serving data to frontend applications, mobile apps or other backend services.

This video covers:
0:16 - Adding a 'destroy' route
1:28 - Adding a 'destroy' controller for deleting records
1:40 - Writing an ActiveRecord query to find a record, using params
2:25 - Writing an ActiveRecord query to delete a record from the database, using '.destroy'
2:45 - Returning a HEAD response with 204 NO CONTENT
3:35 - Testing a DELETE request via cURL

Рекомендации по теме
Комментарии
Автор

I am currently building an API and I plan on finishing this whole tutorial. Thanks a lot! The information is really helpful!😁

elfint
Автор

Thanks man, this series helped me a lot ❤

ahmedmustafa
Автор

It helps me a lot. Thank you for sharing your knowledge with us

marcuspereira
Автор

Why there is not a UPDATE/PUT method ?

goodfylabs