From f0bdaee73f9be8458d5f122017164c53b28c13f2 Mon Sep 17 00:00:00 2001 From: Mike Neilson Date: Mon, 30 Dec 2024 22:13:03 +0000 Subject: [PATCH] Clean up API urls by eliminating basepath from the wrong location. --- .../src/main/java/cwms/cda/ApiServlet.java | 10 +- .../src/main/webapp/swagger-config.yaml | 723 ------------------ cwms-data-api/src/main/webapp/swagger-ui.html | 1 - 3 files changed, 7 insertions(+), 727 deletions(-) delete mode 100644 cwms-data-api/src/main/webapp/swagger-config.yaml diff --git a/cwms-data-api/src/main/java/cwms/cda/ApiServlet.java b/cwms-data-api/src/main/java/cwms/cda/ApiServlet.java index f67ae3572..183473c7b 100644 --- a/cwms-data-api/src/main/java/cwms/cda/ApiServlet.java +++ b/cwms-data-api/src/main/java/cwms/cda/ApiServlet.java @@ -181,6 +181,8 @@ import io.swagger.v3.oas.models.PathItem; import io.swagger.v3.oas.models.info.Info; import io.swagger.v3.oas.models.security.SecurityRequirement; +import io.swagger.v3.oas.models.servers.Server; + import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; @@ -276,6 +278,7 @@ public class ApiServlet extends HttpServlet { private static final long serialVersionUID = 1L; JavalinServlet javalin = null; + private String APP_CONTEXT; @Resource(name = "jdbc/CWMS3") DataSource cwms; @@ -315,10 +318,9 @@ public void init() { om.registerModule(new JavaTimeModule()); PolicyFactory sanitizer = new HtmlPolicyBuilder().disallowElements("