Function consumes

  • 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.

    Parameters

    • Optional contentType: string

      Request content type.

    • Optional apiBodyInfo: ApiBody

    Returns ((classDefinition, methodName) => void)

      • (classDefinition, methodName): void
      • Parameters

        • classDefinition: Object | Function
        • methodName: string

        Returns void

Generated using TypeDoc