You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Deepak Dixit (Jira)" <ji...@apache.org> on 2025/10/08 13:30:00 UTC

[jira] [Created] (OFBIZ-13299) Enhance REST API DSL to Support Nested Resources

Deepak Dixit created OFBIZ-13299:
------------------------------------

             Summary: Enhance REST API DSL to Support Nested Resources
                 Key: OFBIZ-13299
                 URL: https://issues.apache.org/jira/browse/OFBIZ-13299
             Project: OFBiz
          Issue Type: Improvement
          Components: rest-api
            Reporter: Deepak Dixit
            Assignee: Deepak Dixit


As per the current rest-api plugin implementation, the system allows defining only a single-level resource structure in .rest.xml files.

Update the implementation to support *nested <resource> definitions*, enabling hierarchical route construction such as:

 
{code:java}
<api path="/v1">    
    <resource name="orders" path="orders">
         <operation verb="get" path=""/>
         <resource name="items" path="items">
              <operation verb="post" path=""/>
         </resource>    
     </resource>
</api> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)