#1 2015-05-27 17:46:38

ludydoo
Member
Registered: 2015-01-27
Posts: 17

How to separate ORM and Service servers?

Hi,

I read the documentation concerning Hosting and I can't figure out something.

I want to make a RESTful server using ORM and Services.

The problem is that my ORM classes do not represent my business model. I have to translate them into business objects before the user can consume them. The way I see it, the ORM will directly expose the tables, unmodified.

I want to set up a RESTful service layer, accessible through HTTP, that would use the ORM internally instead of exposing it. I would like to be able to publish a RESTful service interface that would be shared with the client. Is it possibe to do this?

Thank you.

Offline

#2 2015-05-27 18:44:14

ludydoo
Member
Registered: 2015-01-27
Posts: 17

Re: How to separate ORM and Service servers?

Just to add some precision.

I would like to handle REST requests myself, not to let the ORM do it. I would use the ORM to access the database and fetch objects for repositories, not to expose REST urls to the client.

Offline

#3 2015-05-27 21:01:41

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,205
Website

Re: How to separate ORM and Service servers?

Use interface based services for that.

Then disable remote ORM access via proper user rights.

Offline

Board footer

Powered by FluxBB