tsoa-next / tsoa-next / 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
