Function controllerConsumes

  • Decorator for a controller class that details the HTTP request Content-Type header value for all endpoints.

    Parameters

    • contentType: string

      Request content type.

    • Optional apiBodyInfo: ApiBody

    Returns ((classDefinition) => void)

      • (classDefinition): void
      • Parameters

        • classDefinition: Function

        Returns void

Generated using TypeDoc