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

Merge branch 'malowe/main/6' into 'main'

ISs #6 - Update endpoint, specs, tests, k8s routes to reflect API rules

See merge request !10
parents 5920c8ef 6f524c8e
No related branches found
No related tags found
1 merge request!10ISs #6 - Update endpoint, specs, tests, k8s routes to reflect API rules
Pipeline #11866 failed
......@@ -12,7 +12,7 @@ tags:
- name: Mailing Lists
description: Definitions in relation to retrieval of mailing lists
paths:
/mailing_lists:
/mailing-lists:
get:
tags:
- Mailing Lists
......@@ -27,7 +27,7 @@ paths:
$ref: '#/components/schemas/MailingLists'
500:
description: Error while retrieving data
/mailing_lists/available:
/mailing-lists/available:
get:
tags:
- Mailing Lists
......@@ -42,7 +42,7 @@ paths:
$ref: '#/components/schemas/MailingLists'
500:
description: Error while retrieving data
/mailing_lists/{listName}:
/mailing-lists/{listName}:
parameters:
- name: listName
in: path
......@@ -64,7 +64,7 @@ paths:
$ref: '#/components/schemas/MailingList'
500:
description: Error while retrieving data
/mailing_lists/projects:
/mailing-lists/projects:
get:
tags:
- Mailing Lists
......@@ -79,7 +79,7 @@ paths:
$ref: '#/components/schemas/MailingListMapping'
500:
description: Error while retrieving data
/mailing_lists/projects/available:
/mailing-lists/projects/available:
get:
tags:
- Mailing Lists
......@@ -94,7 +94,7 @@ paths:
$ref: '#/components/schemas/MailingListMapping'
500:
description: Error while retrieving data
/mailing_lists/projects/{projectID}:
/mailing-lists/projects/{projectID}:
parameters:
- name: projectID
in: path
......
......@@ -41,7 +41,7 @@ import org.jboss.resteasy.specimpl.MultivaluedMapImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@Path("/mailing_lists")
@Path("/mailing-lists")
@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: "/mailing-lists"
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: "/mailing-lists"
port:
targetPort: "http"
tls:
......
......@@ -25,7 +25,7 @@ import io.restassured.http.ContentType;
@TestInstance(Lifecycle.PER_CLASS)
@QuarkusTest
class MailingListsResourceTests {
public static final String MAILING_LISTS_BASE_URL = "/mailing_lists";
public static final String MAILING_LISTS_BASE_URL = "/mailing-lists";
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