From c80a2d50efadb9e34d2f9cc524b38a592998bce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=A3?= Date: Sat, 20 Sep 2025 20:58:11 -0300 Subject: [PATCH 1/3] =?UTF-8?q?fix(pom):=20reverte=20vers=C3=A3o=20do=20sp?= =?UTF-8?q?ring-boot-starter-parent=20para=203.3.0=20e=20adiciona=20spring?= =?UTF-8?q?doc-openapi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- linktreeclone-backend/pom.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/linktreeclone-backend/pom.xml b/linktreeclone-backend/pom.xml index d4a7cf5..78cc84c 100644 --- a/linktreeclone-backend/pom.xml +++ b/linktreeclone-backend/pom.xml @@ -5,7 +5,7 @@ org.springframework.boot spring-boot-starter-parent - 3.5.5 + 3.3.0 br.com @@ -93,6 +93,11 @@ h2 test + + org.springdoc + springdoc-openapi-starter-webmvc-ui + 2.5.0 + From 52248614825f52ed8840265a524bcfa35122a640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=A3?= Date: Sat, 20 Sep 2025 20:58:17 -0300 Subject: [PATCH 2/3] =?UTF-8?q?feat(security):=20permite=20acesso=20p?= =?UTF-8?q?=C3=BAblico=20ao=20Swagger=20UI=20e=20documenta=C3=A7=C3=A3o=20?= =?UTF-8?q?da=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/br/com/linktreeclone/config/SecurityConfig.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linktreeclone-backend/src/main/java/br/com/linktreeclone/config/SecurityConfig.java b/linktreeclone-backend/src/main/java/br/com/linktreeclone/config/SecurityConfig.java index 710fbfd..22a66cc 100644 --- a/linktreeclone-backend/src/main/java/br/com/linktreeclone/config/SecurityConfig.java +++ b/linktreeclone-backend/src/main/java/br/com/linktreeclone/config/SecurityConfig.java @@ -38,6 +38,9 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti "/auth/login", "/status" ).permitAll() + .requestMatchers("/swagger-ui.html").permitAll() + .requestMatchers("/swagger-ui/**").permitAll() + .requestMatchers("/v3/api-docs/**").permitAll() .requestMatchers(HttpMethod.GET, "/{username}").permitAll() .anyRequest().authenticated() ) From 5aa0c3e918389bee94de40b18dd6b06c37d04f78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=A3?= Date: Sat, 20 Sep 2025 21:06:21 -0300 Subject: [PATCH 3/3] =?UTF-8?q?feat(home):=20adiciona=20link=20para=20Swag?= =?UTF-8?q?ger=20UI=20no=20rodap=C3=A9=20da=20p=C3=A1gina=20inicial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/features/home/pages/HomePage.jsx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/linktreeclone-frontend/src/features/home/pages/HomePage.jsx b/linktreeclone-frontend/src/features/home/pages/HomePage.jsx index 44ab29c..df91676 100644 --- a/linktreeclone-frontend/src/features/home/pages/HomePage.jsx +++ b/linktreeclone-frontend/src/features/home/pages/HomePage.jsx @@ -27,7 +27,7 @@ const HomePage = () => { }; getStatus(); - }, []); + }, []); const isApiReady = apiStatus === 'ok'; @@ -40,15 +40,15 @@ const HomePage = () => {

- Criar minha página - @@ -76,6 +76,12 @@ const HomePage = () => { GitHub

+

+ Backend (API): {' '} + + Swagger UI + +

);