register_web_application
Create or update a CSP web application to expose an HTTP-based Business Service, like EnsLib.REST.GenericService, for development with unauthenticated access.
Instructions
Create or update a CSP web application that exposes an HTTP-based Business Service (typically EnsLib.REST.GenericService) to the outside world.
Delegates to the ObjectScript helper because 'Security.Applications' requires switching to the %SYS namespace, which is cleaner to do in ObjectScript than over the Native SDK.
Authentication is set to Unauthenticated for development convenience. Tighten this before going to production.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | URL path of the web app (must start with '/'), e.g. '/rest/user/queryservice-rest-bs' or '/csp/myapp/api' depending on Security.Applications registration. | |
| dispatch_class | No | Class that handles incoming requests. Defaults to 'EnsLib.REST.GenericService' which forwards everything to the Business Service whose config name appears next in the URL. | EnsLib.REST.GenericService |
| description | No | Free-text description shown in the Management Portal. | REST endpoint exposed via the MCP blueprint |
| namespace | No | Target namespace. If empty, uses the namespace of the current MCP connection. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |