Api tags

Better organization in the Swagger UI.

Notice that all the routes in the Swagger UI are mixed. It's possible to group them by context, bringing more organization. Let's go back to the UsersController and use the @ApiTags() decorator over it. Inside this decorator, we should use a name to identify these routes in the Swagger UI, it can be the same name in the @Controller() decorator.

@ApiTags('users')

Now, we can do the same with the other controllers.

Commit - Organizing swagger ui routes by context

Last updated