summaryrefslogtreecommitdiffstats
path: root/cps-application/src
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2021-09-01 12:48:44 +0000
committerGerrit Code Review <gerrit@onap.org>2021-09-01 12:48:44 +0000
commitc0708c6435480a3a1f5c4c8a95f21cfd1d76c6df (patch)
treee0863025215ae5bd3e5abdced0568a9d56f32834 /cps-application/src
parent0af60de4fbb3a3e6c828e179c667b173b1539b62 (diff)
parent4d520016514834bef903401518be5989b390874a (diff)
Merge "Add ncmp endpoints to swagger-ui"
Diffstat (limited to 'cps-application/src')
-rw-r--r--cps-application/src/main/resources/application.yml13
1 files changed, 9 insertions, 4 deletions
diff --git a/cps-application/src/main/resources/application.yml b/cps-application/src/main/resources/application.yml
index 39309d842b..82c6e0aed1 100644
--- a/cps-application/src/main/resources/application.yml
+++ b/cps-application/src/main/resources/application.yml
@@ -24,7 +24,7 @@ server:
rest:
api:
cps-base-path: /cps/api
- ncmp-base-path: /cps-ncmp/api
+ ncmp-base-path: /ncmp
spring:
main:
@@ -84,12 +84,17 @@ notification:
springdoc:
swagger-ui:
- url: /openapi.yml
- path: /swagger-ui/index.html
+ disable-swagger-default-url: true
+ urlsPrimaryName: cps-core
+ urls:
+ - name: cps-core
+ url: /api-docs/cps-core/openapi.yaml
+ - name: cps-ncmp
+ url: /api-docs/cps-ncmp/openapi.yaml
security:
# comma-separated uri patterns which do not require authorization
- permit-uri: /manage/**,/swagger-ui/**,/swagger-resources/**,/v3/api-docs
+ permit-uri: /manage/**,/swagger-ui/**,/swagger-resources/**,/api-docs
auth:
username: ${CPS_USERNAME}
password: ${CPS_PASSWORD}