tsoa-next / tsoa-next / Consumes
समारोह: उपभोग ()
ts
function Consumes(value): MethodDecorator;में परिभाषित: packages/runtime/src/decorators/parameter.ts:109
मीडिया प्रकार को ओवरराइड करता है जो एक एकल कार्रवाई के लिए एक अनुरोध निकाय को दस्तावेज करने के लिए उपयोग किया जाता है।
पैरामीटर
value
string
उदाहरण के लिए अनुरोध शरीर मीडिया प्रकार, application/json। देखें Swagger request-body documentation।
रिटर्न
MethodDecorator
Contributors
No contributors
Changelog
No recent changes
