This function creates an akera.io REST API middleware that can be used on an Express
application to expose all business logic to be dynamically executed. The catalog
middleware can be used instead for more control over what services are exposed.
If the Web Handler is already used then best to share the same instance, that way the connections are re-used between the services.
Can be either an instance of @akera/web
or one or more broker configuration(s)
for remote brokers.
An instance of @akera/api
logger to be used by the router for logging.
This function creates an akera.io REST API middleware based on a business logic
catalog
that can be used on an Express application. The api
middleware can be used instead for exposing all business logic that can be dynamically executed.
If the Web Handler is already used then best to share the same instance, that way the connections are re-used between the services.
Can be either an instance of @akera/web
or one or more broker configuration(s)
for remote brokers.
The business logic catalog definition.
An instance of @akera/api
logger to be used by the router for logging.
This function creates an akera.io REST data access (CRUD) middleware that can be used on an Express application.
If the Web Handler is already used then best to share the same instance, that way the connections are re-used between the services.
Can be either an instance of @akera/web
or one or more broker configuration(s)
for remote brokers.
An instance of @akera/api
logger to be used by the router for logging.
This function creates an akera.io JSDO data access (CRUD) middleware that can be used on an Express application.
If the Web Handler is already used then best to share the same instance, that way the connections are re-used between the services.
Can be either an instance of @akera/web
or one or more broker configuration(s)
for remote brokers.
Export data in a dataset format, if false single table format is being used (defaults to true).
If set to true the field names are translated
to be valid SQL (defaults to false).
An instance of @akera/api
logger to be used by the router for logging.
An API catalog service can be an API handler or a Web handler.