Adding swagger groups to segregate the public API docs from the authenticated one. Exposing only dmp and description endpoints.
This commit is contained in:
parent
6bccc2e980
commit
757eab2069
|
@ -1,6 +1,17 @@
|
|||
springdoc:
|
||||
apiDocs:
|
||||
groups:
|
||||
enabled: true
|
||||
groupConfigs:
|
||||
- group: public-api
|
||||
displayName: Public API
|
||||
packagesToScan: org.opencdmp.controllers.publicapi
|
||||
pathsToScan: "/api/public/(dmps|datasets)/?.*"
|
||||
pathsToMatch: "/api/public/dmps/**, /api/public/datasets/**"
|
||||
- group: internal-api
|
||||
displayName: Internal API
|
||||
packagesToScan: org.opencdmp.controllers
|
||||
packagesToExclude: org.opencdmp.controllers.publicapi
|
||||
pathsToMatch: "/api/dmp/**, /api/description/**"
|
||||
swagger-ui:
|
||||
enabled: true
|
||||
useRootPath: true
|
||||
|
|
Loading…
Reference in New Issue