Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can drupal router handle PUT requests?

Tags:

rest

drupal

I have a module that will be using some restfulness and i'd like to know if drupal's menu router handles PUT requests without problem...?

like image 874
redben Avatar asked Mar 23 '26 11:03

redben


1 Answers

After doing some research i found that Nothing stops you from handling PUT requests on Drupal. Actually i looked at the code in rest server module and it seems to handle it without problem. Just inspect the php $_SERVER['REQUEST_METHOD'] as you'd normally do.

Note: Answered my own question and keeping it as per @Henrik Opel comment

like image 145
redben Avatar answered Mar 25 '26 06:03

redben



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!