You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Shi Jinghai (JIRA)" <ji...@apache.org> on 2018/06/20 08:57:00 UTC

[jira] [Created] (OFBIZ-10438) Add method attribute to request-map to controll a uri can be called GET or POST only

Shi Jinghai created OFBIZ-10438:
-----------------------------------

             Summary: Add method attribute to request-map to controll a uri can be called GET or POST only
                 Key: OFBIZ-10438
                 URL: https://issues.apache.org/jira/browse/OFBIZ-10438
             Project: OFBiz
          Issue Type: Improvement
          Components: framework
    Affects Versions: Trunk
            Reporter: Shi Jinghai


As discussed in OFBIZ-4274, OFBiz runs doGet method in ControlServlet no matter what request it is.

I like Mathieu's comment on adding a method attribute to the request-map element, it's almost the same as we implemented in our openapi:
<request-map uri="examples" method="get">   <security https="true" auth="true"/>   <event type="java" path="ExamplesHandlers" invoke="getExamples"/>   <response name="success" type="view" value="..."/>   <response name="error" type="view" value="..."/></request-map>
The difference is that we DON'T support method list expression:
<request-map uri="examples" method="get,post">...</request-map>
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)