ReST functionality is implemented with attributes on a CFC. Some people do not like this approach. To me it seems like a logical extension to how SOAP web services are created.
I think it is important to treat the CFCs as a ReST wrapper for requests. They should not include any business logic, SQL or processing. All this should be contained in a domain model (which are just CFCs themselves).
CFCs
- attributes
- restpath
- consumes
- produces
- functions
- wrapper for ReST requests
- no business logic / sql / ...
- existing web site
- COM? if no build to reduce code duplication
- more ..?