${
this.callback === "true"
? html`
Callback request
`
: html`
Request
`
}
${guard(this.parameterGuardDeps, () => inputParametersTemplate.call(this, "path"))}
${guard(this.parameterGuardDeps, () => inputParametersTemplate.call(this, "query"))}
${guard(this.requestBodyGuardDeps, () => requestBodyTemplate.call(this))}
${guard(this.parameterGuardDeps, () => inputParametersTemplate.call(this, "header"))}
${guard(this.parameterGuardDeps, () => inputParametersTemplate.call(this, "cookie"))}
${this.allowTry === "false" ? "" : html`${apiCallTemplate.call(this)}`}
`;
}
async updated(changedProperties) {
if (this.showCurlBeforeTry === "true") {
if (
!changedProperties ||
!changedProperties.has("curlSyntax") ||
changedProperties.size > 1
) {
this.applyCURLSyntax(this.shadowRoot);
}
}
scheduleHighlight(this.getRootNode()?.host?.shadowRoot || this.shadowRoot);
if (this.webhook === "true") {
this.allowTry = "false";
}
// After the fields are in the DOM; deferred so the update is not requested mid-update
queueMicrotask(() => this.syncTryBarState());
}
// This method is called before navigation change in focused mode
async beforeNavigationFocusedMode() {}
// Called by rapi-doc after navigating to a new endpoint in focused renderStyle.
// In focused mode, the single