@serenity-is/corelib / serviceRequest
Function: serviceRequest()
serviceRequest<
TResponse>(service,request?,onSuccess?,options?):PromiseLike<TResponse>
Defined in: src/base/services.ts:319
Convenience wrapper around serviceCall that takes a service key as the first argument.
Type Parameters
TResponse
TResponse extends ServiceResponse
Service response type.
Parameters
service
string
Service endpoint key (e.g. "Administration/User/List") or full URL.
request?
any
Request DTO serialized as the POST body.
onSuccess?
(response) => void
Optional success callback invoked with the response before the promise resolves.
options?
ServiceOptions<TResponse>
Additional ServiceOptions merged with the above (e.g. errorMode, blockUI, signal).
Returns
PromiseLike<TResponse>
A PromiseLike resolving to the service response.