diff options
author | 2022-12-08 18:44:09 +0000 | |
---|---|---|
committer | 2022-12-08 18:44:13 +0000 | |
commit | 5ac400df6381d2f275e0359cb06c7904eddf1faf (patch) | |
tree | 2a3ac7b8d6382d6d572f6034e46e57f699a6143c /main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java | |
parent | 64e5fee5475ff3172caa98b00d719ce5f1308b5d (diff) |
Replace SpringFox with SpringDoc in policy-pap
This commit:
- Remove SpringFox
- Adds SpringDoc
- Enables the .../v3/api-docs endpoint
Note that the Swagger annotations from the OpenAPI specification
generated code need to be enabled so that the API specification is
available over the ..../v3/api-docs endpoint. THis will be done in
subsequent commits.
Issue-ID: POLICY-4404
Change-Id: I42c1575a3ce76d9b3e753ad51f85df027d12b980
Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java')
-rw-r--r-- | main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java b/main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java index fd4bb742..04971cce 100644 --- a/main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java +++ b/main/src/test/java/org/onap/policy/pap/main/rest/CommonPapRestServer.java @@ -145,7 +145,7 @@ public abstract class CommonPapRestServer { */ protected void testSwagger(final String endpoint) throws Exception { final Invocation.Builder invocationBuilder = - sendFqeRequest(httpsPrefix + "v2/api-docs", true, MediaType.APPLICATION_JSON); + sendFqeRequest(httpsPrefix + "v3/api-docs", true, MediaType.APPLICATION_JSON); final String resp = invocationBuilder.get(String.class); assertTrue(resp.contains(ENDPOINT_PREFIX + endpoint)); } |