From a3335373138ca94419500c747fe942876b1d09f5 Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Mon, 4 Nov 2024 09:13:36 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20ex?= =?UTF-8?q?ternalDocs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../example/swagger/controller/UserController.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/sadtech/example/swagger/controller/UserController.java b/src/main/java/org/sadtech/example/swagger/controller/UserController.java index a91dec3..f5418f8 100644 --- a/src/main/java/org/sadtech/example/swagger/controller/UserController.java +++ b/src/main/java/org/sadtech/example/swagger/controller/UserController.java @@ -1,5 +1,6 @@ package org.sadtech.example.swagger.controller; +import io.swagger.v3.oas.annotations.ExternalDocumentation; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import org.sadtech.example.swagger.dto.UserDto; @@ -22,7 +23,14 @@ import static org.springframework.util.MimeTypeUtils.APPLICATION_JSON_VALUE; */ @RestController @RequestMapping("/api/user") -@Tag(name = "Пользователи", description = "Взаимодействие с пользователями") +@Tag( + name = "User Controller", + description = "Контроллер для управления пользователями", + externalDocs = @ExternalDocumentation( + description = "Ссылка на общую документацию", + url = "https://example.com/docs/user-controller" + ) +) public class UserController { private final Map repository;