# extractSwaggerDocs

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/parsers/backend/nestjs-swagger-docs.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/parsers/backend/nestjs-swagger-docs.ts#L109)

Everything `@nestjs/swagger` decorators state about one operation.

Controller-level decorators are passed too — `@ApiTags` is conventionally written once on the
class — and method-level values win, which is the precedence NestJS itself applies.

## Signature

```ts
function extractSwaggerDocs(methodDecorators: readonly ts.Decorator[], controllerDecorators: readonly ts.Decorator[]): AuthoredDocs
```

## Parameters

| Name | Type |
|---|---|
| `methodDecorators` | `readonly ts.Decorator[]` |
| `controllerDecorators` | `readonly ts.Decorator[]` |

**Returns:** `AuthoredDocs`
