Quantcast
Channel: DreamFactory Forum - Latest posts
Viewing all articles
Browse latest Browse all 5027

How to get the url in server-side script for all tables

$
0
0

Hi @aurerua

In the your first question, the correct event target to POST in all tables, is:
db._table.{table_name}.post.pre_process (works fine)

You do not need redirect request to table, the request is automatically directed to table after execute a pre process script.

See a complete flux to request GET api/v2/db/foo/1

1º execute event script db._table.{table_name}.{id}.get.pre_process (validation)
2º execute event script db._table.foo.{id}.get.pre_process (validation)
request data to table foo from db service
4º execute event script db._table.{table_name}.{id}.get.pos_process (extend)
5º execute event script db._table.foo.{id}.get.pos_process` (extend)

ps* All validations of session and access role is performed before process.

best regards,
Junior Conte


Viewing all articles
Browse latest Browse all 5027

Trending Articles