{
...
@ApiImplicitHeader({ name: 'X-API-Key' })
@ApiImplicitHeader({ name: 'X-Latitude' })
@ApiImplicitHeader({ name: 'X-Longitude' })
@ApiOperation({ title: 'Allows sign up or register a new user.' })
@Post('register')
async register(@Body() body: RegisterDto) {
...
}
It would be nice to accept an array of options or be able to define it on the controller for all methods?
In the next release, there'll be a @ApiImplicitHeaders decorator that accepts an array of headers metadata. 馃檪
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
In the next release, there'll be a
@ApiImplicitHeadersdecorator that accepts an array of headers metadata. 馃檪