[ 
https://issues.apache.org/jira/browse/OFBIZ-4274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13031149#comment-13031149
 ] 

Adrian Crum edited comment on OFBIZ-4274 at 5/10/11 12:40 PM:
--------------------------------------------------------------

We need a way to map REST URLs to the appropriate OFBiz services. This issue is 
for discussion/collaboration on adding REST request handling to the OFBiz 
project. The initial comments/design were taken from a discussion on the dev 
mailing list.

The REST URLs (or URIs) should represent resources and the HTTP commands should 
represent actions taken on those resources. The generally accepted convention 
is that POST is a create operation, PUT is an update operation, GET returns the 
requested resource, and DELETE is a delete operation.

A servlet will be developed that reads a configuration file which maps REST 
resource URLs to OFBiz services (POC configuration attached).

REST Introduction: http://www.infoq.com/articles/rest-introduction
A good example of a REST API: http://apidoc.adility.com/submission-api


      was (Author: [email protected]):
    We need a way to map REST URLs to the appropriate OFBiz services. This 
issue is for discussion/collaboration on adding REST request handling to the 
OFBiz project.

The REST URLs (or URIs) should represent resources and the HTTP commands should 
represent actions taken on those resources. The generally accepted convention 
is that POST is a create operation, PUT is an update operation, GET returns the 
requested resource, and DELETE is a delete operation.

A servlet will be developed that reads a configuration file which maps REST 
resource URLs to OFBiz services (POC configuration attached).

REST Introduction: http://www.infoq.com/articles/rest-introduction
A good example of a REST API: http://apidoc.adility.com/submission-api

  
> Implement a REST Servlet
> ------------------------
>
>                 Key: OFBIZ-4274
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4274
>             Project: OFBiz
>          Issue Type: New Feature
>            Reporter: Adrian Crum
>            Priority: Minor
>         Attachments: RestConfig.patch
>
>
> Implement a REST servlet that will map REST requests to OFBiz services. 
> Details are in the comments.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to