Fixing swagger config issues

This commit is contained in:
Thomas Georgios Giannos 2024-05-22 12:05:01 +03:00
parent b4857b403e
commit aac74142a8
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@ web:
security:
enabled: true
authorized-endpoints: [ api ]
allowed-endpoints: [ api/public, api/dmp/public, api/description/public, /api/supportive-material/public, api/language/public, api/contact-support/public, api/dashboard/public, prometheus, health, metrics ]
allowed-endpoints: [ api/public, api/dmp/public, api/description/public, /api/supportive-material/public, api/language/public, api/contact-support/public, api/dashboard/public, prometheus, health, metrics, swagger-ui, v3/api-docs ]
idp:
api-key:
enabled: false

View File

@ -1,5 +1,7 @@
springdoc:
packagesToScan: org.opencdmp.publicapi.controllers
packagesToScan: org.opencdmp.controllers.publicapi
pathsToScan: "/api/public/(dmps|datasets)/?.*"
swagger-ui:
enabled: true
useRootPath: true
docExpansion: none