# AtloriaAPIExplorer

**Kind:** Class

**Source:** [`atloria-monorepo/packages/ui-core/src/components/api-explorer/APIExplorer.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/ui-core/src/components/api-explorer/APIExplorer.ts#L130)

**Extends:** `ExplorerElement`

## Methods

| Method | Signature | Returns |
|---|---|---|
| `willUpdate` | `willUpdate(changed: Map<string | number | symbol, unknown>)` | `void` |
| `connectedCallback` | `connectedCallback()` | `void` |
| `disconnectedCallback` | `disconnectedCallback()` | `void` |
| `render` | `render()` | `void` |

## Properties

| Property | Type |
|---|---|
| `styles` | `any` |
| `strings` | `ExplorerStrings` |
| `spec` | `OpenAPISpec` |
| `endpoints` | `APIEndpoint[]` |
| `environments` | `Environment[]` |
| `mode` | `'explorer' | 'documentation'` |
| `defaultEndpoint` | `string` |
| `proxyUrl` | `string` |
| `presetBearerToken` | `string` |
| `readerApiKey` | `string` |
| `paramOptionsUrl` | `string` |
| `sendDisabledReason` | `string` |
| `allowCredentialLogin` | `any` |
| `getKeyUrl` | `any` |
| `oauthClientId` | `any` |
| `oauthRedirectUri` | `any` |
| `projectKey` | `any` |

## Where it refuses work

- `AtloriaAPIExplorer` stops the work with `Error` when `bytes > MAX_PROXY_UPLOAD_BYTES`, in 2 places.
- `AtloriaAPIExplorer` stops the work with `Error` when `!loginEndpoint` — “No login endpoint found”.
- `AtloriaAPIExplorer` stops the work with `Error` when `!token` — “No token found in login response”.
- `AtloriaAPIExplorer` stops the work with `Error` when `!proxied.ok`.
- `AtloriaAPIExplorer` stops the work with `Error` when `!response.ok`.
- `AtloriaAPIExplorer` stops the work with `OAuth2Error` when `response.error` — “provider-error”.

## When something fails

- `AtloriaAPIExplorer` handles failure in 16 places: it logs it and continues in 6, discards it silently in 5, turns it into a return value in 4, and lets it reach the caller in 1. A failure discarded silently leaves no trace for whoever debugs this later.
