starting aggregate swagger ui

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-10-13 01:25:26 +02:00
parent a652b0d898
commit d208681580
2 changed files with 17 additions and 3 deletions

View File

@@ -43,6 +43,8 @@ dependencies {
implementation 'com.nimbusds:nimbus-jose-jwt:9.41.2' implementation 'com.nimbusds:nimbus-jose-jwt:9.41.2'
implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client' implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'
implementation 'com.github.ben-manes.caffeine:caffeine:3.1.8' implementation 'com.github.ben-manes.caffeine:caffeine:3.1.8'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-api:2.6.0'
testImplementation 'io.projectreactor:reactor-test' testImplementation 'io.projectreactor:reactor-test'
compileOnly 'org.projectlombok:lombok' compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools' developmentOnly 'org.springframework.boot:spring-boot-devtools'

View File

@@ -36,6 +36,15 @@ sentry:
# We recommend adjusting this value in production. # We recommend adjusting this value in production.
tracesSampleRate: 1.0 tracesSampleRate: 1.0
springdoc:
swagger-ui:
path: /swagger-ui.html
urls:
- name: TimeZone Service
url: /aggregate/timezone/v3/api-docs
- name: Google Service
url: /aggregate/google/v3/api-docs
spring: spring:
application: application:
name: edge-service name: edge-service
@@ -55,20 +64,23 @@ spring:
- id: timezone-service - id: timezone-service
uri: lb://timezone-service uri: lb://timezone-service
predicates: predicates:
- Path=/v1/timezone/**, /health/timezone - Path=/v1/timezone/**, /health/timezone, /aggregate/timezone/v3/api-docs
filters: filters:
- RewritePath=/health/timezone, /actuator/health - RewritePath=/health/timezone, /actuator/health
- RewritePath=/aggregate/timezone/v3/api-docs, /v3/api-docs
- id: google-service - id: google-service
uri: ${GOOGLE_SERVICE_URI:http://google-service.web:8080} uri: ${GOOGLE_SERVICE_URI:http://google-service.web:8080}
predicates: predicates:
- Path=/v1/account/**, /health/google - Path=/v1/account/**, /health/google, /aggregate/google/v3/api-docs
filters: filters:
- RewritePath=/health/google, /actuator/health - RewritePath=/health/google, /actuator/health
- RewritePath=/aggregate/google/v3/api-docs, /v3/api-docs
- id: token-service - id: token-service
uri: ${BACKEND_SERVICE_URI:http://backend-service.web:8080} uri: ${BACKEND_SERVICE_URI:http://backend-service.web:8080}
predicates: predicates:
- Path=/v1/token/**, /health/backend - Path=/v1/token/**, /health/backend, /aggregate/backend/v3/api-docs
filters: filters:
- RewritePath=/health/backend, /actuator/health - RewritePath=/health/backend, /actuator/health
- RewritePath=/aggregate/backend/v3/api-docs, /v3/api-docs