Open loucass003 opened 8 months ago
Use @ApiTag and @ApiSecurity decorator of @nestjs/swagger
to the controller.
Nestia can identify them.
Ah, I've missed documentation on the https://nestia.io/docs/sdk/swagger article.
I'll do it someday. Thanks for reporting.
/**
* Controller for the Libraries
*/
@ApiTags('library')
@ApiSecurity('bearer')
@Controller('library')
@Authenticated()
export class LibraryController {}
Works as expected thanks for support. Nestia is amazing! keep up the good work
It is pretty common for a Controller to have the same security rules on all its endpoints Please allow us to add those annotations on the controller so we do not have to repeat it on all the endpoints.
Here is how a controller would look like