Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BodyParamDecorator

Type of the BodyParam decorator

Hierarchy

  • BodyParamDecorator

Callable

  • Injects a body parameter into controller handler Requires an express body-parser

    example
    
    class ExampleController {
      @Post('/')
      index(@BodyParam('id') id : string) {
        // id is "foobar" for post body '{"id":"foobar"}'
      }
    }
    

    Parameters

    Returns any

Index

Constructors

Constructors

constructor

Generated using TypeDoc