php - Using post instead of put in Laravel 5 -


i using laravel 5 creating restful api, right way use post method instead of put method updating record, see no difference in using both, complete logic updating value written inside controller, helpful if suggest right method go head.

you should use put/patch. that's non-arguable. standard in implementing restful apis psr standards.

there's reason why there different http verbs.

an excerpt article:

the http verbs comprise major portion of our “uniform interface” constraint , provide action counterpart noun-based resource.

see article here.


Comments

Popular posts from this blog

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -