Skip to content

tsoa-next / @tsoa-next/runtime / Produces

Function: Produces()

ts
function Produces(value): MethodDecorator & ClassDecorator;

Defined in: packages/runtime/src/decorators/response.ts:48

Overrides the response media type on a controller or a single action.

Parameters

value

string

The response media type, for example application/json. See Swagger media-type documentation.

Returns

MethodDecorator & ClassDecorator

TypeScript-first OpenAPI generation, route generation, and runtime validation.