AnsweredAssumed Answered

WebScriptRequest - how to know different verbs (POST, PUT, DELETE, GET)

Question asked by raghav on Apr 3, 2017
Latest reply on Mar 16, 2018 by afaust

Is there a way to know the verb (GET, POST, PUT, DELETE) inside the execute method of AbstractWebScript? Does WebScriptRequest know anything about whether the call is a GET, or a PUT, or a POST, or a DELETE?

 

I can always create another web script  (one for PUT, another for POST etc.). 

I can also differentiate between the verbs, if the URI is different for PUT, GET etc.

 

But I was wondering if the WebScriptRequest has a way to determine the verb type (whether it is GET, POST, PUT, DELETE).

Outcomes