Basic Service

Registering services and subscribing notifications

Functions

ResultName / ParamsComment
boolRegisterServiceRegisters functions and notifications that can be used immediately afterwards by a consumer.
functionsstring[](Optional) List of provided functions.
notificationsstring[](Optional) List of provided notifications.
boolUnregisterServiceRemoves functions and notifications that were registered before.
functionsstring[](Optional) List of functions to unregister.
notificationsstring[](Optional) List of notifications to unregister.
RegisterHttpEndpointResultRegisterHttpEndpoint ≥aop 0.4.0Registers HTTP endpoints.
tlsServerFingerprintstringSHA-256 hash of the ephemeral TLS certificate used by the HTTP server hosting the Extension-provided endpoints, encoded as hex string.
endpointsHttpEndpoint[]The endpoints to register.
boolSubscribeNotificationSubscribes to a notification.
notificationstringName of notification to subscribe to.
paramsvalue{}Additional, subscription specific parameters (see individual notifications for further details).
boolUnsubscribeNotificationUnsubscribes from notifications.
notificationsstring[]List of notifications to unsubscribe from.
SessionInfoGetSessionInfo ≥aop 0.3.0Returns information about a session.
sessionstringID of the session to retrieve information about.
MethodDesc[]GetFunctionsReturns a list with all available functions.
MethodDesc[]GetNotificationsReturns a list with all available notifications.

Notifications

Name / ParamsComment
ServiceRegisteredTriggered when a service is registered.
clientstring(Optional) ID of the client that is providing the service.
functionsstring[](Optional) Added functions.
notificationsstring[](Optional) Added notifications.
ServiceUnregisteredTriggered when a service is unregistered and thus removing its functions and notifications.
clientstring(Optional) ID of the client that was providing the service.
functionsstring[](Optional) Removed functions.
notificationsstring[](Optional) Removed notifications.

Objects

HttpEndpoint ≥aop 0.4.0

Property Type Description
Url string Absolute URL to forward requests to. Typically, but not necessarily hosted by the Extension. Example: “https://localhost:27365/some/path”. Note that plain HTTP is not allowed here.
MappedPath string Relative path for routing, e.g., “/my/endpoint”.
Methods RequestPolicy[] Possible request methods with access permissions.

RequestPolicy ≥aop 0.4.0

Property Type Description
Method string Permissable HTTP request method. See EnumRequestMethod.
Permission string (Optional) See EnumPermission.
Authentication string See EnumAuthenticationRequirement.

RegisterHttpEndpointResult ≥aop 0.4.0

Property Type Description
TlsClientFingerprint string TLS certificate fingerprint used by the client (e.g., upstream server), as a SHA-256 hash.
MappedBaseUrl string Base URL under which the registered endpoints are made available by the hosting application, e.g., “https://wgserver:1234/ext/myclientId/”. Can be used as prefix for ‘MappedPath’s if the Extension needs to expose absolute URLs to its mapped endpoints.

SessionInfo ≥aop 0.3.0

Property Type Description
Client string ID of the client the session is associated with.
Station string Code of the station the session is associated with (if available).
User string Code of the user the session is associated with (if available).
Profile SessionProfileInfo Additional info regarding active profiles (if available).

SessionProfileInfo ≥aop 0.3.0

Property Type Description
User string ID of the active user profile (if available).
Station string ID of the active station profile (if available).
Functions string[] List of function profile IDs (if available).
Rights string[] List of right profile IDs (if available).

MethodDesc

Property Type Description
Name string The method’s name.
Clients string[] List of client IDs that provide the specific method.

Enums

EnumPermission ≥aop 0.4.0

Name Value Description
Read read api.read right required to access this endpoint.
Write write api.write right required to access this endpoint.
Control control api.control right required to access this endpoint.

EnumAuthenticationRequirement ≥aop 0.4.0

Name Value Description
None none Any unauthenticated client may access this endpoint. Access permissions are not checked.
Session session Only authenticated clients may access this endpoint, i.e., the session header must identify an active IPC session. Configured access permissions are checked.

EnumRequestMethod ≥aop 0.4.0

Name Value Description
GET GET Requests a representation of the specified resource.
POST POST Submits an entity to the target resource.
PUT PUT Requests that the enclosed entity be stored.
OPTIONS OPTIONS Requests information about the communication options available for the target resource or server.
Last modified September 25, 2026