RESTful resource handling and delete: controller method not found |
It depends on how you are requesting it. Anything visited in a browser is a GET request. HTML forms are usually POST (method="post"). The other HTTP verbs (PUT, PATCH, DELETE) have to be specified in whatever library or application you are using to call it.
For example, if you are using Axios (common in VueJS), you can do something like: Code: axios.get(url, config) The advantage is you can use the same path (administration/user/1) for multiple operations depending on the HTTP verb. Per the resource you defined, there isn't suppose to be any administration/user/delete/1. |
Messages In This Thread |
RESTful resource handling and delete: controller method not found - by Zeff - 01-19-2022, 06:23 AM
RE: RESTful resource handling and delete: controller method not found - by xenomorph1030 - 01-19-2022, 06:55 AM
RE: RESTful resource handling and delete: controller method not found - by Zeff - 01-19-2022, 08:03 AM
RE: RESTful resource handling and delete: controller method not found - by xenomorph1030 - 01-19-2022, 08:52 AM
RE: RESTful resource handling and delete: controller method not found - by iRedds - 01-20-2022, 07:06 AM
|