Anderson,
Within a Rest-Style architecture, the way you access a data repository to produce your Resources/messages, or to consume them, is not one of the central themes of the service premises published in Rest (Restful Services)
In other words, the way you will do this, whether with DAO or other Design standards, will not directly affect your Rest-style architecture. You may even have memoization methods to respond to requests faster.
The DAO, as a first option
In my experience I worked on several projects with different architectures, the one that offered more flexibility and Separation Of Concerns was DAO with a Dependency Injection - Spring framework for example. I usually inject the implementations of the DAO layer interfaces, the same for the Bos
Premisses Rest
If you’re preoccupied with following the Rest-style architecture guidelines, read them here: http://en.wikipedia.org/wiki/Representational_state_transfer
The language where serivço is actually implemented does not matter, just remember that in Rest HTTP it is not a transport layer, but rather is seen as an API:
That is, HTTP methods are seen as methods of an API.
Consider JAX-RS
JAX-RS provides an excellent abstraction layer for creating and displaying services in Rest, is considered the State-of-Art within the Java platform
Last, I recommend reading this document:
http://www2008.org/papers/pdf/p805-pautassoA.pdf
It could be DAO too, but at first DAL.
– Anderson Brunel Modolon
DAL = Data Access Layer
– Anderson Brunel Modolon
BLL = Business Logic Layer. There are those who are used as BL (Business Layer)
– Anderson Brunel Modolon