Logotype Sitevision Developer
Log in

Log in

Can I call routes in a RESTApp from a Script or a WebApp?

Yes, RestAppInvokerFactory is the starting point to make calls to a RESTApp without any outgoing requests.

Published: 2022-07-22  |  Updated: 2024-09-26

RespAppInvokerFactory make it possible to make call routes in a WebbApp from a Script module.

Step 1 - Get an instance of RestAppInvokerFactory

For WebApp/RESTApp - use import:

For Script module - use require:

Step 2 - Make use of tRestAppInvokerFactory