#1 2015-06-30 10:59:48

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 332

Validations and computations on RESTful mORMot API

Hi @ab,

   I am migrating a RemObjects application server to mORMot. With mORMot I want to develop an API using RESTful for both business rules to CRUD operations. Our customers sometimes need integrate their systems with ours from C#, ASP .Net, Java, etc. For example they need to make operations CRUD on our users table, scheduler table, etc. and we need validate and put default values on some fields before update our database. Nowadays some customers access directly to our database to make this and we don't want make this anymore.

   With Interface Based Sevices I can cover complex business rules. But for RESTful CRUD there is some way to validate and update fields before write to database ?

Thanks.

EMartin


Esteban

Offline

#2 2015-06-30 12:48:55

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

Re: Validations and computations on RESTful mORMot API

AFAIK CRUD is plain CRUD.
There is only very basic validation process on the server side, mainly about user rights.
The validation is expected to be done on the client side.

So I guess that if you want more logic to be done on the server side, define your own CRUD interface-based services.

Offline

#3 2015-06-30 13:10:26

EMartin
Member
From: Buenos Aires - Argentina
Registered: 2013-01-09
Posts: 332

Re: Validations and computations on RESTful mORMot API

OK, understood.

Thanks.

EMartin.


Esteban

Offline

Board footer

Powered by FluxBB