Replaces the path parameters in the URL template with their corresponding values.

  • Parameters

    • urlTemplate: string

      The URL template containing path parameters.

    • pathParams: Record<string, string>

      The path parameters to replace in the URL template.

    Returns string

    • The URL with the path parameters replaced.