Skip to content

Commit

Permalink
wrapp swagger to gateway 😎😎
Browse files Browse the repository at this point in the history
  • Loading branch information
bassem97 committed Oct 24, 2022
1 parent d3fd1ce commit e7b8ebf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.6.12</version>
</dependency>
</dependencies>

<dependencyManagement>
Expand Down Expand Up @@ -115,4 +121,3 @@
</repository>
</repositories>
</project>

8 changes: 7 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
server:
port: 8084
forward-headers-strategy: framework
spring:
application:
name: notifs-ms
data:
mongodb:
uri: mongodb+srv://bassem:bassem@authentication.6mvbj9d.mongodb.net/?retryWrites=true&w=majority
uri: mongodb://bassem:bassem@ac-wxvf7j2-shard-00-00.6mvbj9d.mongodb.net:27017,ac-wxvf7j2-shard-00-01.6mvbj9d.mongodb.net:27017,ac-wxvf7j2-shard-00-02.6mvbj9d.mongodb.net:27017/?ssl=true&replicaSet=atlas-f10aon-shard-0&authSource=admin&retryWrites=true&w=majority
database: notifications
auto-index-creation: true
main:
Expand All @@ -18,6 +19,7 @@ eureka:
client:
service-url:
defaultZone: http://172.20.0.10:8761/eureka/
# defaultZone: http://localhost:8761/eureka/
fetch-registry: true
register-with-eureka: true
instance:
Expand All @@ -30,3 +32,7 @@ management:
info:
env:
enabled: true

springdoc:
swagger-ui:
path: /docs

0 comments on commit e7b8ebf

Please sign in to comment.