# SDK Mocking

The `SdkMock` class provides easy API mocking for testing. See the [full documentation](../docs/sdk-mock.md) for details.

## Quick Start

```typescript
import { SdkMock, StoreSdk } from '@api-client/core/browser.js';

const sdk = new StoreSdk('http://localhost:8080');
const mocker = new SdkMock(sdk);

// Mock with random data
mocker.organizations.list();
const orgs = await sdk.organizations.list();

// Mock with custom data
mocker.organizations.create({ 
  data: { key: 'org-1', name: 'Test Org', ... } 
});

// Clean up
mocker.restore();
```

## Features

- ✅ Simple API - generate random but correct responses
- ✅ Custom responses with specific data, status codes, and headers
- ✅ Easy stub management and cleanup
- ✅ Full TypeScript support

## Supported APIs

- Organizations (list, create, read, delete)
- Groups (list, create, read, update, delete)
- Users (me)
- Auth (oauthRedirect)

See the [complete documentation](../docs/sdk-mock.md) for more information.
