- consumes(contentType?, apiBodyInfo?): ((classDefinition, methodName) => void)
-
Parameters
-
Optional
contentType: string
-
Optional
apiBodyInfo: ApiBody
Returns ((classDefinition, methodName) => void)
-
- (classDefinition, methodName): void
-
Parameters
-
classDefinition: Object | Function
-
methodName: string
Returns void
Decorator for an endpoint method that details the HTTP request Content-Type header value.
Overrides the controller value set by the
controllerConsumes
decorator, if any.