# Consumes Decorator

Module
import { Consumes } from "@tsed/swagger/src/decorators/consumes"
Source/packages/swagger/src/decorators/consumes.ts

# Overview

function Consumes(...consumes: string[]): Function;

# Description

Add consumes metadata on the decorated element.

# Examples

# On method

class Model {
   @Consumes("application/x-www-form-urlencoded")
   id: string;
}
1
2
3
4