You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Taher Alkhateeb <sl...@gmail.com> on 2018/08/09 15:31:19 UTC

[Proposal] Enhance the controller logic to accommodate HTTP methods and prepare for REST

Hello Everyone,

We want to make this formal with proper community consensus and I will
try to keep this short.

In [1] Mathieu Lirzin is providing some (in my opinion) good work on
converting the Control Servlet logic to be able to handle the
different HTTP methods (GET, POST, etc ...) The purpose of the work in
this JIRA is simple. You should be able to call a request with a
different HTTP methods by using a format like <request-map uri="ping"
method="post">. You can find a more detailed discussion in [2]. This
is the first step of a multi-step process to be able to integrate REST
API with OFBiz.

So, this is a proposal to apply the following:
1- Enhance the controller to be able to accommodate one-or-more HTTP
methods (method="GET,POST")
2- Enhance the controller to further be able to get "patterns" that
can be mapped to REST APIs. So a request like
https://host/control/request/customer/orders/1/orderName can be
processed as a resource

Please correct me if I was wrong on anything written here Mathieu, and
please everyone provide your feedback if you approve of moving forward
with this initiative.

[1] https://issues.apache.org/jira/browse/OFBIZ-10438
[2] https://s.apache.org/ec2r

Re: [Proposal] Enhance the controller logic to accommodate HTTP methods and prepare for REST

Posted by Julien NICOLAS <ju...@nereide.fr>.
+1 to move forward.

Julien.


Le 09/08/2018 à 17:31, Taher Alkhateeb a écrit :
> Hello Everyone,
>
> We want to make this formal with proper community consensus and I will
> try to keep this short.
>
> In [1] Mathieu Lirzin is providing some (in my opinion) good work on
> converting the Control Servlet logic to be able to handle the
> different HTTP methods (GET, POST, etc ...) The purpose of the work in
> this JIRA is simple. You should be able to call a request with a
> different HTTP methods by using a format like <request-map uri="ping"
> method="post">. You can find a more detailed discussion in [2]. This
> is the first step of a multi-step process to be able to integrate REST
> API with OFBiz.
>
> So, this is a proposal to apply the following:
> 1- Enhance the controller to be able to accommodate one-or-more HTTP
> methods (method="GET,POST")
> 2- Enhance the controller to further be able to get "patterns" that
> can be mapped to REST APIs. So a request like
> https://host/control/request/customer/orders/1/orderName can be
> processed as a resource
>
> Please correct me if I was wrong on anything written here Mathieu, and
> please everyone provide your feedback if you approve of moving forward
> with this initiative.
>
> [1] https://issues.apache.org/jira/browse/OFBIZ-10438
> [2] https://s.apache.org/ec2r
>


Re: [Proposal] Enhance the controller logic to accommodate HTTP methods and prepare for REST

Posted by deepak nigam <de...@gmail.com>.
Hi Shi,

Verified the fix by Mathieu on the local machine, the system is working
fine now.

Thanks & Regards
--
Deepak Nigam
HotWax Systems Pvt. Ltd.

On Wed, Aug 29, 2018 at 11:01 AM Jacques Le Roux <
jacques.le.roux@les7arts.com> wrote:

> Hi Taher,
>
> Thank you for summarizing. I agree with this proposal
>
> After I have applied Mathieu's last OFBIZ-10438 at r1839451, I think we
> are ready to continue this work
>
> Jacques
>
> Le 09/08/2018 à 17:31, Taher Alkhateeb a écrit :
> > Hello Everyone,
> >
> > We want to make this formal with proper community consensus and I will
> > try to keep this short.
> >
> > In [1] Mathieu Lirzin is providing some (in my opinion) good work on
> > converting the Control Servlet logic to be able to handle the
> > different HTTP methods (GET, POST, etc ...) The purpose of the work in
> > this JIRA is simple. You should be able to call a request with a
> > different HTTP methods by using a format like <request-map uri="ping"
> > method="post">. You can find a more detailed discussion in [2]. This
> > is the first step of a multi-step process to be able to integrate REST
> > API with OFBiz.
> >
> > So, this is a proposal to apply the following:
> > 1- Enhance the controller to be able to accommodate one-or-more HTTP
> > methods (method="GET,POST")
> > 2- Enhance the controller to further be able to get "patterns" that
> > can be mapped to REST APIs. So a request like
> > https://host/control/request/customer/orders/1/orderName can be
> > processed as a resource
> >
> > Please correct me if I was wrong on anything written here Mathieu, and
> > please everyone provide your feedback if you approve of moving forward
> > with this initiative.
> >
> > [1] https://issues.apache.org/jira/browse/OFBIZ-10438
> > [2] https://s.apache.org/ec2r
> >
>
>

Re: [Proposal] Enhance the controller logic to accommodate HTTP methods and prepare for REST

Posted by Jacques Le Roux <ja...@les7arts.com>.
Hi Taher,

Thank you for summarizing. I agree with this proposal

After I have applied Mathieu's last OFBIZ-10438 at r1839451, I think we are ready to continue this work

Jacques

Le 09/08/2018 à 17:31, Taher Alkhateeb a écrit :
> Hello Everyone,
>
> We want to make this formal with proper community consensus and I will
> try to keep this short.
>
> In [1] Mathieu Lirzin is providing some (in my opinion) good work on
> converting the Control Servlet logic to be able to handle the
> different HTTP methods (GET, POST, etc ...) The purpose of the work in
> this JIRA is simple. You should be able to call a request with a
> different HTTP methods by using a format like <request-map uri="ping"
> method="post">. You can find a more detailed discussion in [2]. This
> is the first step of a multi-step process to be able to integrate REST
> API with OFBiz.
>
> So, this is a proposal to apply the following:
> 1- Enhance the controller to be able to accommodate one-or-more HTTP
> methods (method="GET,POST")
> 2- Enhance the controller to further be able to get "patterns" that
> can be mapped to REST APIs. So a request like
> https://host/control/request/customer/orders/1/orderName can be
> processed as a resource
>
> Please correct me if I was wrong on anything written here Mathieu, and
> please everyone provide your feedback if you approve of moving forward
> with this initiative.
>
> [1] https://issues.apache.org/jira/browse/OFBIZ-10438
> [2] https://s.apache.org/ec2r
>