API ReferencefunctionsBuildbapapiendpoint

Playwright Power Platform Toolkit v0.0.4


Playwright Power Platform Toolkit / buildBapApiEndpoint

Function: buildBapApiEndpoint()

buildBapApiEndpoint(_pathQuery): string

Defined in: utils/api-utilities.ts:103

Build BAP API invoke endpoint

Constructs the full URL for the BAP API invoke pattern. The BAP API uses a special invoke pattern where the actual API path is passed in the x-ms-path-query header.

Parameters

_pathQuery

string

The x-ms-path-query value (API path and query params) - currently unused

Returns

string

Full API endpoint URL for BAP invoke pattern

Example

const endpoint = buildBapApiEndpoint('/providers/Microsoft.PowerApps/apps');
// Returns: https://api.bap.microsoft.com/api/invoke