From b668d6ceccd3b157597ecbc8bc4a610c8d460c42 Mon Sep 17 00:00:00 2001 From: hirst Date: Sat, 1 Jun 2024 16:34:37 +0200 Subject: [PATCH] openapi setup --- dummy/pom.xml | 19 +++++++++++++------ dummy/src/main/resources/application.yml | 1 + gateway/pom.xml | 2 +- gateway/src/main/resources/application.yml | 2 -- 4 files changed, 15 insertions(+), 9 deletions(-) diff --git a/dummy/pom.xml b/dummy/pom.xml index 071da9e..ebe8990 100644 --- a/dummy/pom.xml +++ b/dummy/pom.xml @@ -35,19 +35,18 @@ org.springframework.cloud spring-cloud-config-server - - org.springframework.boot - spring-boot-starter-oauth2-resource-server - - + org.springframework.security.oauth spring-security-oauth2 2.5.2.RELEASE - + + org.springframework.boot + spring-boot-starter-oauth2-resource-server + org.springframework.security spring-security-oauth2-resource-server @@ -58,16 +57,24 @@ spring-boot-starter-security + + org.springdoc + springdoc-openapi-starter-webmvc-ui + 2.5.0 + + org.postgresql postgresql runtime + org.springframework.security spring-security-test test + diff --git a/dummy/src/main/resources/application.yml b/dummy/src/main/resources/application.yml index a50a127..0c21d6c 100644 --- a/dummy/src/main/resources/application.yml +++ b/dummy/src/main/resources/application.yml @@ -15,6 +15,7 @@ spring: password: admin springdoc: + enable-native-support: true api-docs: enabled: true diff --git a/gateway/pom.xml b/gateway/pom.xml index 94ccd49..e201005 100644 --- a/gateway/pom.xml +++ b/gateway/pom.xml @@ -32,7 +32,7 @@ org.springdoc springdoc-openapi-starter-webflux-ui - 2.2.0 + 2.5.0 org.springframework.boot diff --git a/gateway/src/main/resources/application.yml b/gateway/src/main/resources/application.yml index 9b2ea0b..c7acec3 100644 --- a/gateway/src/main/resources/application.yml +++ b/gateway/src/main/resources/application.yml @@ -27,7 +27,6 @@ spring: predicates: - Path=/eureka/** # dummy service routing - # TODO smth is wrong with this - id: dummy uri: lb://dummy predicates: @@ -69,7 +68,6 @@ springdoc: urls: - name: Gateway API url: /v3/api-docs - # TODO not working rn - name: Dummy Service API url: /api/v1/dummy/v3/api-docs