Can you show example of code on how to remove movie on the server e.g. do a REST call DELETE http://localhost:3000/movies/id?
DELETE http://localhost:3000/movies/id
Sure! I want to focus on writing a custom hook first. The code for deleting on the server would really depend on your application backend setup
The code for deleting on the server would really depend on your application backend setup
We can assume pretty standard REST JSON API endpoint (like in Rails)
GET /movies - return list GET /movies/id - return one item DELETE /movies/id - delete one item POST /movies/id - update one item
Another slight variation of the same idea
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Can you show example of code on how to remove movie on the server e.g. do a REST call
DELETE http://localhost:3000/movies/id
?Sure! I want to focus on writing a custom hook first. The code for deleting on the server would really depend on your application backend setup
We can assume pretty standard REST JSON API endpoint (like in Rails)
Another slight variation of the same idea