# Decorator Tags

Decorator swagger schema classDecorator operation private
Module
import { Tags } from "@tsed/specs/schema/src/decorators/operations/tags"
Source/packages/specs/schema/src/decorators/operations/tags.ts

# Overview

function Tags(...tags: (string | OpenSpecTag)[]): (...args: any[]) => any;

# Description

Add tags metadata on the decorated element.

# Examples

# On method

@Controller("/")
class MyController {
 @Tags("api")
 get() {}
}
1
2
3
4
5

Other topics