title: Can you build a RESTful Business Logic Layer?
body: <p>I've built a RESTful service for the Data Access Layer (DAL) of my architecture:</p>
  
  <pre><code>POST http://example.com/data/User
  GET|PUT|DELETE http://example.com/data/User/{UserId}
  </code></pre>
  
  <p>However, for the Business Logic Layer (BLL), a second non-RESTful service is used:</p>
  
  <pre><code>POST http://example.com/accountapi/register
  POST http://example.com/accountapi/login
  </code></pre>
  
  <p>This BLL service, instead of making calls to the DAL service, it talks directly to the database.</p>
  
  <p>How would you improve this architecture?</p>
  
  <ol>
  <li>Should the BLL service call the DAL service ?</li>
  <li>Should I drop the DAL service and only expose the BLL service ?</li>
  <li><strong>Should I, somehow, inject business logic on my RESTful DAL service</strong> ? If yes, how ?</li>
  </ol>