Skip to content

Commit 9afe3f5

Browse files
Swagger enabled changes (#70)
* Swagger enabled changes * Swagger changes
1 parent 19cdc37 commit 9afe3f5

File tree

6 files changed

+22
-5
lines changed

6 files changed

+22
-5
lines changed

src/main/environment/admin_ci.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ [email protected]_SECRET_KEY@
1919
#ELK logging file name
2020
logging.file.name=@env.ADMIN_API_LOGGING_FILE_NAME@
2121

22-
common-url=@env.COMMON_URL@
22+
common-url=@env.COMMON_URL@
23+
24+
springdoc.api-docs.enabled=@env.SWAGGER_DOC_ENABLED@
25+
springdoc.swagger-ui.enabled=@env.SWAGGER_DOC_ENABLED@

src/main/environment/admin_dev.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ videoConsultation-base-url=https://psmri.swymed.com:92744
1616
spring.redis.host=localhost
1717
spring.main.allow-bean-definition-overriding=true
1818

19-
common-url=http://localhost:8083/
19+
common-url=http://localhost:8083/,
20+
21+
springdoc.api-docs.enabled=true
22+
springdoc.swagger-ui.enabled=true

src/main/environment/admin_example.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ videoConsultation-base-url=https://psmri.swymed.com:9274
1515
spring.redis.host=localhost
1616
spring.main.allow-bean-definition-overriding=true
1717

18-
common-url=http://localhost:8083/
18+
common-url=http://localhost:8083/
19+
20+
springdoc.api-docs.enabled=true
21+
springdoc.swagger-ui.enabled=true

src/main/environment/admin_test.properties

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ callcentre-server-ip=10.208.122.99
1010
videoConsultation-apikey=<Enter Swymed API key>
1111
videoConsultation-base-url=https://psmri.swymed.com:9274
1212

13-
14-
1513
### Redis IP
1614
spring.redis.host=localhost
1715
spring.main.allow-bean-definition-overriding=true
1816
jwt.secret=
1917

2018
common-url=http://localhost:8083/
19+
20+
springdoc.api-docs.enabled=true
21+
springdoc.swagger-ui.enabled=true
22+

src/main/environment/admin_uat.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ spring.redis.host=localhost
1717
spring.main.allow-bean-definition-overriding=true
1818

1919
common-url=http://localhost:8083/
20+
springdoc.api-docs.enabled=true
21+
springdoc.swagger-ui.enabled=true
22+

src/main/java/com/iemr/admin/utils/JwtUserIdValidationFilter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public void doFilter(ServletRequest servletRequest, ServletResponse servletRespo
5555
// Skip login and public endpoints
5656
if (path.equals(contextPath + "/user/userAuthenticate")
5757
|| path.equalsIgnoreCase(contextPath + "/user/logOutUserFromConcurrentSession")
58+
|| path.startsWith(contextPath + "/swagger-ui")
59+
|| path.startsWith(contextPath + "/v3/api-docs")
60+
|| path.startsWith(contextPath + "/user/refreshToken")
5861
|| path.startsWith(contextPath + "/public")) {
5962
logger.info("Skipping filter for path: " + path);
6063
filterChain.doFilter(servletRequest, servletResponse);

0 commit comments

Comments
 (0)