From 881c32ec109f0fff6f5661940ad035c3dfc0c7d9 Mon Sep 17 00:00:00 2001 From: Jorge Hernandez Date: Thu, 25 May 2017 16:44:15 -0500 Subject: [POLICY-16] generic introduction of swagger On a per-server basis append /swagger.json or /swagger.yaml ie: HTTP GET :6969/swagger.json HTTP GET :9696/swagger.json Resulting specification can be used by swagger clients. Change-Id: I4b1a8b53d50b1528664150934b04e92447e4d4d7 Signed-off-by: Jorge Hernandez --- policy-management/src/main/server/config/IntegrityMonitor.properties | 1 + policy-management/src/main/server/config/policy-engine.properties | 1 + policy-management/src/main/server/config/policy-healthcheck.properties | 1 + 3 files changed, 3 insertions(+) (limited to 'policy-management/src/main/server/config') diff --git a/policy-management/src/main/server/config/IntegrityMonitor.properties b/policy-management/src/main/server/config/IntegrityMonitor.properties index 529abcda..293f3582 100644 --- a/policy-management/src/main/server/config/IntegrityMonitor.properties +++ b/policy-management/src/main/server/config/IntegrityMonitor.properties @@ -25,6 +25,7 @@ http.server.services.TEST.host=0.0.0.0 http.server.services.TEST.port=9981 http.server.services.TEST.restClasses=org.openecomp.policy.drools.core.IntegrityMonitorRestManager http.server.services.TEST.managed=false +http.server.services.TEST.swagger=true # The following were added as part of US673632 # diff --git a/policy-management/src/main/server/config/policy-engine.properties b/policy-management/src/main/server/config/policy-engine.properties index 647f7367..dbaf72af 100644 --- a/policy-management/src/main/server/config/policy-engine.properties +++ b/policy-management/src/main/server/config/policy-engine.properties @@ -44,3 +44,4 @@ http.server.services.CONFIG.userName=${{ENGINE_MANAGEMENT_USER}} http.server.services.CONFIG.password=${{ENGINE_MANAGEMENT_PASSWORD}} http.server.services.CONFIG.restPackages=org.openecomp.policy.drools.server.restful http.server.services.CONFIG.managed=false +http.server.services.CONFIG.swagger=true diff --git a/policy-management/src/main/server/config/policy-healthcheck.properties b/policy-management/src/main/server/config/policy-healthcheck.properties index 51da7ece..8a44fb9b 100644 --- a/policy-management/src/main/server/config/policy-healthcheck.properties +++ b/policy-management/src/main/server/config/policy-healthcheck.properties @@ -3,6 +3,7 @@ http.server.services.HEALTHCHECK.host=0.0.0.0 http.server.services.HEALTHCHECK.port=6969 http.server.services.HEALTHCHECK.restClasses=org.openecomp.policy.drools.healthcheck.RestHealthCheck http.server.services.HEALTHCHECK.managed=false +http.server.services.HEALTHCHECK.swagger=true http.client.services=PAP,PDP -- cgit 1.2.3-korg