You are not logged in.
Pages: 1
Hi,
How can I use only the Rest framework of mORMot ?
I have a Data Model layer already(ORM - TMS Aurelius) and will like to plug that in to SOA and Rest Framework.
How do I go about doing this. Samples and code snippets are highly welcomed.
Thanks
Offline
Yes, of course!
The easiest and cleanest is to use interface-based services.
See http://synopse.info/files/html/Synopse% … ml#TITL_63
But create you own objects for SOA.
You should better not "leak" your ORM objects through your services, but define DTO matching the diverse use cases of each SOA class.
If you want to start writing some serious SOA stuff, take a little time reading the corresponding part of the documentation.
http://synopse.info/files/html/Synopse% … ml#TITL_17
and try to get some concepts from DDD principles
http://synopse.info/files/html/Synopse% … ml#TITL_68
Main point about SOA is "uncoupling".
This is why I suggest not to leak your ORM objects.
Offline
thanks
Offline
Pages: 1