title: Rest api - Defining URL for hierarchical level data
body: <p>I have concept of Account and sub-account.</p>
  
  <pre><code>Account
     |---&gt;Subaccount1
              |----&gt; Subaccount2
                         |----&gt;Subaccount3
                               ....................... and so on
  </code></pre>
  
  <pre><code>Account level rest url's:
  POST - base_url/accounts
  PUT - base_url/accounts
  GET - base_url/accounts/$acc_name
  DELETE - base_url/accounts/$acc_name
  GET - base_url/accounts
  </code></pre>
  
  <pre><code>Subaccount level rest url's - level 1
  POST - base_url/accounts/$acc_name/subaccount
  PUT - base_url/accounts/$acc_name/subaccount
  GET - base_url/accounts/$acc_name/subaccount/$sub_acc
  DELETE - base_url/accounts/$acc_name/subaccount/$sub_acc
  GET - base_url/accounts/$acc_name/subaccount
  </code></pre>
  
  <p>If the sub-account level is 1 or known, i can define URL.
  But since i doesn't know the hierarchy level, How will i define URL for sub-accounts?</p>
  
  <p>For defining routers, i m making use of vertx framework.</p>