Ts.ED
Getting started
Configuration
Docs
  • Overview

    • Controllers
    • Providers
    • Models
    • Converters
    • Middlewares
    • Filters
    • Interceptors
    • Authentication
    • Hooks
  • Advanced

    • Request data persistence
    • Injection scopes
    • Custom providers
    • Custom endpoint decorators
    • Testing
    • Api Reference
Guide
  • Examples
  • Session & cookies
  • Passport.js
  • TypeORM
  • Mongoose
  • GraphQL
  • Seq
  • Socket.io
  • Swagger
  • Validation with AJV
  • Upload files
  • Serve static files
  • Templating
  • Throw HTTP exceptions
  • Customize 404
  • AWS project
  • Jest
4.x
Getting started
Configuration
Docs
  • Overview

    • Controllers
    • Providers
    • Models
    • Converters
    • Middlewares
    • Filters
    • Interceptors
    • Authentication
    • Hooks
  • Advanced

    • Request data persistence
    • Injection scopes
    • Custom providers
    • Custom endpoint decorators
    • Testing
    • Api Reference
Guide
  • Examples
  • Session & cookies
  • Passport.js
  • TypeORM
  • Mongoose
  • GraphQL
  • Seq
  • Socket.io
  • Swagger
  • Validation with AJV
  • Upload files
  • Serve static files
  • Templating
  • Throw HTTP exceptions
  • Customize 404
  • AWS project
  • Jest
4.x
  • Responses

    • Overview

    # Responses Decorator

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

    # Overview

    function Responses(status: string | number, response: Response): Function;

      Other
      topics

    • Session & cookies
    • Passport.js
    • TypeORM
    • Mongoose
    • GraphQL
    • Socket.io
    • Swagger
    • AJV
    • Custom validator
    • Multer
    • Serve static files
    • Templating
    • Throw HTTP Exceptions
    • Customize 404
    • AWS
    • Jest
    • Seq
    • Controllers
    • Providers
    • Model
    • Converters
    • Middlewares
    • Filters
    • Interceptors
    • Authentication
    • Hooks
    • Injection scopes
    • Custom providers
    • Custom endpoint decorator
    • Testing

    Caught a mistake or want to contribute to the documentation? Edit on Github

    Contribute

    Help shape the future of Ts.Ed by joining our team and send us pull requests via our GitHub repository!

    License

    Released under the MIT License - © Copyright 2016 - 2019.

    0