[jira] [Commented] (OFBIZ-4274) Implement a REST Servlet

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-4274) Implement a REST Servlet

Nicolas Malin (Jira)

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

Scott Gray commented on OFBIZ-4274:
-----------------------------------

I had pictured that GraphQL could be layered on top of the model I was describing to allow for custom queries.  I haven't looked into GraphQL mutations enough to know if it would be remotely suitable for OFBiz beyond reading data.  I'd be interested in hearing more details about what you envisage.

I'll be too busy for the next few months to do much beyond discussion.  I do have an early rough version PoC of what I've been describing, I could share that if there's any interest but I'd need to do some cleanup and upgrade it to gradle first.  All it really does so far is allow CRUD to/from the database based on a resource model and an RSQL (Rest Query Language) implementation for querying resources.  There's no ECA implementation for business logic, no authorization handling etc.

The most important thing to me though, is that whatever approach is taken is useful both to an external client and also within OFBiz itself.  The best way to battle test something is to try and have our thousands of services and data prep scripts use it.

When I get time again I'll probably do the ECA implementation for my approach and then have a go at replacing all shipment related interactions OFBiz with the new model.  Doesn't mean I don't want to see alternative approaches though, it's just that I'd like to see how it works out.

> Implement a REST Servlet
> ------------------------
>
>                 Key: OFBIZ-4274
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4274
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Adrian Crum
>            Priority: Major
>              Labels: REST
>         Attachments: RestExampleSchema.xsd, RestXmlRepresentation.xml, rest-conf.xml, swagger-pos-openapi.png
>
>
> Implement a REST servlet that will map REST requests to OFBiz services. Details are in the comments.
> [here is the discussion which took place on the dev ML|http://markmail.org/message/ai6q2fbksowaayn4]



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