[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17303325#comment-17303325 ] Girish Vasmatkar commented on OFBIZ-11995: -- Hi [~mbrohl]: Yes, it is done. Any further improvements to schema or design changes can be done in separate child ticket. > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17301730#comment-17301730 ] Michael Brohl commented on OFBIZ-11995: --- Hi [~gvasmatkar] , isn't this already solved and can be closed? > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17201266#comment-17201266 ] ASF subversion and git services commented on OFBIZ-11995: - Commit a4fb6d22eefbf91fe1ed0d6018d50de7a027ae0d in ofbiz-plugins's branch refs/heads/trunk from Jacques Le Roux [ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=a4fb6d2 ] Fixed: Add support to read and register resources defined in XML DSL(OFBIZ-11995) Fixes a JavaDoc issue and while at it replaces // TODO Auto-generated catch block e.printStackTrace(); by Debug.logError(e, MODULE); > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17199884#comment-17199884 ] ASF subversion and git services commented on OFBIZ-11995: - Commit 9d0e544c954b4088d10bad0cded3cf2234c313ef in ofbiz-site's branch refs/heads/master from Girish Vasmatkar [ https://gitbox.apache.org/repos/asf?p=ofbiz-site.git;h=9d0e544 ] Added: REST API schema XSD added(OFBIZ-11995) > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17199337#comment-17199337 ] ASF subversion and git services commented on OFBIZ-11995: - Commit 43d4c0bd9899b1a22a453cf06a91c3d934cde3c2 in ofbiz-plugins's branch refs/heads/trunk from Girish Vasmatkar [ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=43d4c0b ] Improved: Error handling for the response and added new error 422 (Unprocessable Entity) to handle validation errors(OFBIZ-11995) > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17197587#comment-17197587 ] ASF subversion and git services commented on OFBIZ-11995: - Commit 5bcb7af25acca71dd83147d3281469807cb239f6 in ofbiz-plugins's branch refs/heads/trunk from Girish Vasmatkar [ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=5bcb7af ] Implemented: Added support for other HTTP methods for exportable services endpoints. 2. Added Messages class holding keys for the error and success messages. The keys will be referenced in UiLabels XMLs (OFBIZ-11995) > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17197410#comment-17197410 ] ASF subversion and git services commented on OFBIZ-11995: - Commit 7a92f0640adfcac68f7da99c7848048e3262d119 in ofbiz-plugins's branch refs/heads/trunk from Girish Vasmatkar [ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=7a92f06 ] Implemented: Added service definition and implementation to generate JWT auth token(OFBIZ-11995) > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17196947#comment-17196947 ] ASF subversion and git services commented on OFBIZ-11995: - Commit 6ac1f284915ff1de659bda944e26b90bdab2f75c in ofbiz-plugins's branch refs/heads/trunk from Girish Vasmatkar [ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=6ac1f28 ] Implemented: Add support to read and register resources defined in XML DSL(OFBIZ-11995) > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17196746#comment-17196746 ] ASF subversion and git services commented on OFBIZ-11995: - Commit 85e76a3997d3d7df32e166f154da484abff85434 in ofbiz-plugins's branch refs/heads/trunk from Girish Vasmatkar [ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=85e76a3 ] Implemented: OpenAPI generation for resources configured using XML DSL(OFBIZ-11995) > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17196197#comment-17196197 ] ASF subversion and git services commented on OFBIZ-11995: - Commit 476b42a15df5b60d2d83d0b6a9c3cdf8e52bc69a in ofbiz-plugins's branch refs/heads/trunk from Girish Vasmatkar [ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=476b42a ] Implemented: Added support to read Rest XML DSL definitions(OFBIZ-11995) > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17196101#comment-17196101 ] ASF subversion and git services commented on OFBIZ-11995: - Commit 93f5b6f4fb09c7e558c8a1615e97175d9316e198 in ofbiz-plugins's branch refs/heads/trunk from Girish Vasmatkar [ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=93f5b6f ] Improved: Corrected formatting(OFBIZ-11995) > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17196070#comment-17196070 ] ASF subversion and git services commented on OFBIZ-11995: - Commit dabca1e416cb129d51e76cc90f0847674547f5f9 in ofbiz-plugins's branch refs/heads/trunk from Girish Vasmatkar [ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=dabca1e ] Improved: Structural changes in the OpenAPI reader to allow for reading resources defined in XML schema(OFBIZ-11995) > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17196035#comment-17196035 ] ASF subversion and git services commented on OFBIZ-11995: - Commit 2a85d30fddfcd269f7a41ea66e779239b5c4f4ef in ofbiz-plugins's branch refs/heads/trunk from Girish Vasmatkar [ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=2a85d30 ] Fixed: javadoc generation error fixed. Dereferenced 'Service' link (OFBIZ-11995) > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17190742#comment-17190742 ] Pawan Verma commented on OFBIZ-11995: - +1, looks good to me. Agree, we should use services instead of fetching data from entities. > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17190084#comment-17190084 ] Jacques Le Roux commented on OFBIZ-11995: - Got it, I agree. > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17190066#comment-17190066 ] Girish Vasmatkar commented on OFBIZ-11995: -- Hi Jacques - Sorry for being not clearer on the service element. May be an example XML will help clarify. The service element was in context to whether we need to allow mapping resources to Entities as well .. {code:java} http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation="rest-api.xsd"> {code} I meant that in order to fetch the data, services should suffice instead of fetching from entities directly. So no need to have say element to allow fetching data from entity directly to cater to a request. > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17190057#comment-17190057 ] Jacques Le Roux commented on OFBIZ-11995: - Thanks Girish, The draft looks good to me, and I see not much need to put documentation in since the names and such are quite obvious. We just need to add {code:xml}http://ofbiz.apache.org/dtds/rest-api.xsd"/>{code}. You know better than me if it needs more information, seems complete to me. I glbally agree about resources depending on services, though I'm not sure that's the case for all ressources (images come to mind). ANyway we don't need to be completely REST orthodoxal, pragmatism is OK with me. So you mean to replace the ressource element by the service element and to remove the service element at bottom? bq. Some elements can be used to generate API documentation as well. Sorry I have no ideas about that :) > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17190031#comment-17190031 ] Girish Vasmatkar commented on OFBIZ-11995: -- Hi Jacques, Attaching here a draft schema for defining RESTFul resources. I feel only "service" element can solve the purpose. Each resource can be bound to a service element. Some elements can be used to generate API documentation as well. Best, Girish > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > Attachments: rest-api.xsd > > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17189244#comment-17189244 ] Girish Vasmatkar commented on OFBIZ-11995: -- Hi Jacques Thanks for extending your help. I have an initial draft in my mind that I plan to share soon before proceeding further. Best, Girish > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (OFBIZ-11995) Define schema for RESTFul resources mapping.
[ https://issues.apache.org/jira/browse/OFBIZ-11995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17189135#comment-17189135 ] Jacques Le Roux commented on OFBIZ-11995: - Hi Girish, You can count me to help if ever it's needed. Just let me know > Define schema for RESTFul resources mapping. > > > Key: OFBIZ-11995 > URL: https://issues.apache.org/jira/browse/OFBIZ-11995 > Project: OFBiz > Issue Type: Sub-task > Components: ALL PLUGINS >Affects Versions: Trunk >Reporter: Girish Vasmatkar >Assignee: Girish Vasmatkar >Priority: Major > > As a developer, I need to have the ability to define REST resources using XML > DSL allowing to plug in OFBiz services to the resources that can serve the > HTTP requests. > -- This message was sent by Atlassian Jira (v8.3.4#803005)