# Generate API Client — LegacyApp

Generates type-safe API clients from openapi spec at `docs/api.yaml`.

## Usage
```
Generate API client for [endpoint or resource name]
```

## Generated files
1. **DTO** (`data/models/[resource]_dto.dart`) — request/response models with json_serializable
2. **DataSource** (`data/datasources/[resource]_remote_datasource.dart`) — Dio calls with error handling
3. **Repository impl** (`data/repositories/[resource]_repository_impl.dart`)

## After generation
Run: `dart run build_runner build --delete-conflicting-outputs`
