# FastAPIDetector

**Kind:** Class

**Source:** [`atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/detectors/fastapi-detector.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/detectors/fastapi-detector.ts#L70)

FastAPI Detector

## Methods

| Method | Signature | Returns |
|---|---|---|
| `detectRoutes` | `detectRoutes(entities: Entity[])` | `DetectedFastAPIRoute[]` |
| `detectModels` | `detectModels(entities: Entity[])` | `DetectedPydanticModel[]` |
| `getRouteSummary` | `getRouteSummary(route: DetectedFastAPIRoute)` | `string` |

## Where it refuses work

- `FastAPIDetector` stops the work with an early return when `modelMatch && /^[A-Z]/.test(modelMatch[1])`.
- `FastAPIDetector` stops the work with an early return when `!tagsMatch`.
- `FastAPIDetector` stops the work with an early return when `!classMatch`.
- `FastAPIDetector` stops the work with an early return when `!defaultValue`.
