{{!
  Copyright IBM Corp. 2016, 2025
  SPDX-License-Identifier: BUSL-1.1
}}

<Page::Header @title="API explorer">
  <:breadcrumbs>
    <Page::Breadcrumbs @breadcrumbs={{this.breadcrumbs}} />
  </:breadcrumbs>
  <:description>
    Call Vault and plugin API endpoints directly from the browser to accelerate development and debugging.
    <Hds::Link::Inline @isHrefExternal={{true}} @href={{doc-link "/vault/gui/api-docs"}}>
      Learn more
    </Hds::Link::Inline>
  </:description>
</Page::Header>

<div class="box is-fullwidth is-marginless">
  <NamespaceReminder as |R|>
    Requests use the header
    <code>X-Vault-Namespace: {{R.namespace.path}}</code>. You can also use
    <code>{{R.namespace.path}}</code>
    as an API prefix. See
    <DocLink @path="/vault/api-docs#namespaces">docs</DocLink>
    for examples.
  </NamespaceReminder>

  <div id={{this.inputId}} class="swagger-ember" {{did-insert this.swaggerInit}} data-test-swagger-ui></div>
</div>