Skip to content
Snippets Groups Projects
Commit cf598d24 authored by Martin Lowe's avatar Martin Lowe :flag_ca:
Browse files

Merge branch 'malowe/main/base-url-change' into 'main'

Update base url to fix trailing slash redirect

See merge request !16
parents bb97802b c15cd01f
No related branches found
No related tags found
1 merge request!16Update base url to fix trailing slash redirect
Pipeline #14346 passed
......@@ -6,7 +6,7 @@ info:
name: Eclipse Public License - 2.0
url: https://www.eclipse.org/legal/epl-2.0/
servers:
- url: https://api.eclipse.org/foundation/mailing_lists
- url: https://api.eclipse.org/foundation/mailing-list
description: Production endpoint for the membership portal data
tags:
- name: Mailing Lists
......
......@@ -41,7 +41,7 @@ import org.jboss.resteasy.specimpl.MultivaluedMapImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@Path("")
@Path("mailing-list")
@Produces(MediaType.APPLICATION_JSON)
public class MailingListsResource {
private static final Logger LOGGER = LoggerFactory.getLogger(MailingListsResource.class);
......
......@@ -79,7 +79,7 @@ metadata:
haproxy.router.openshift.io/balance: roundrobin
spec:
host: "api.eclipse.org"
path: "/mailing-lists"
path: "/foundation/mailing-list"
port:
targetPort: "http"
tls:
......
......@@ -79,7 +79,7 @@ metadata:
haproxy.router.openshift.io/balance: roundrobin
spec:
host: "api-staging.eclipse.org"
path: "/mailing-lists"
path: "/foundation/mailing-list"
port:
targetPort: "http"
tls:
......
quarkus.log.level=INFO
quarkus.http.port=8090
quarkus.http.root-path=/mailing-lists
quarkus.http.root-path=/foundation
quarkus.http.non-application-root-path=mailing-list/non-application
quarkus.http.cors=true
security.csrf.enabled=true
......
......@@ -26,7 +26,7 @@ import io.restassured.http.ContentType;
@QuarkusTest
class MailingListsResourceTests {
// base needs to be empty because resteasy takes care of the root
public static final String MAILING_LISTS_BASE_URL = "";
public static final String MAILING_LISTS_BASE_URL = "mailing-list";
public static final String AVAILABLE_MAILING_LISTS_URL = MAILING_LISTS_BASE_URL + "/available";
public static final String MAILING_LISTS_BY_NAME_URL = MAILING_LISTS_BASE_URL + "/{listName}";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment