# AtloriaCodeSample

**Kind:** Class

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

**Extends:** `ExplorerElement`

## Methods

| Method | Signature | Returns |
|---|---|---|
| `render` | `render()` | `void` |

## Properties

| Property | Type |
|---|---|
| `styles` | `any` |
| `samples` | `CodeSampleData[]` |
| `endpoint` | `any` |
| `method` | `any` |
| `baseUrl` | `any` |
| `apiKeyValue` | `any` |
| `multipartParts` | `BodyPart[]` |

## Where it refuses work

- `AtloriaCodeSample` stops the work with an early return when `match >= 0`.
- `AtloriaCodeSample` stops the work with an early return when `this.isMultipart`.

## When something fails

- `AtloriaCodeSample` handles failure in 2 places: it turns it into a return value in 1, and discards it silently in 1. A failure discarded silently leaves no trace for whoever debugs this later.
