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

Update API, spec, tests, k8s conf to conform to API guidelines

Paths were using underscores instead of hyphens in paths. This patch
resolves the actual endpoints, spec, tests, and k8s routes that serve
the endpoints.
parent 831ad059
Branches main
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ servers:
description: Production endpoint for the membership portal data
paths:
/working_groups:
/working-groups:
get:
tags:
- Working Groups
......@@ -34,7 +34,7 @@ paths:
500:
description: Error while retrieving data
/working_groups/{alias}:
/working-groups/{alias}:
parameters:
- name: alias
in: path
......@@ -57,7 +57,7 @@ paths:
500:
description: Error while retrieving data
/working_groups/{alias}/resources:
/working-groups/{alias}/resources:
parameters:
- name: alias
in: path
......@@ -80,7 +80,7 @@ paths:
500:
description: Error while retrieving data
/working_groups/{alias}/levels:
/working-groups/{alias}/levels:
parameters:
- name: alias
in: path
......@@ -103,7 +103,7 @@ paths:
500:
description: Error while retrieving data
/working_groups/{alias}/agreements:
/working-groups/{alias}/agreements:
parameters:
- name: alias
in: path
......
......@@ -34,7 +34,7 @@ import org.eclipsefoundation.wg.services.WorkingGroupsService;
*
* @author Martin Lowe, Zachary Sabourin
*/
@Path("working_groups")
@Path("working-groups")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public class WorkingGroupsResource {
......
......@@ -79,7 +79,7 @@ metadata:
haproxy.router.openshift.io/balance: roundrobin
spec:
host: "api.eclipse.org"
path: "/working_groups"
path: "/working-groups"
port:
targetPort: "http"
tls:
......
......@@ -79,7 +79,7 @@ metadata:
haproxy.router.openshift.io/balance: roundrobin
spec:
host: "api-staging.eclipse.org"
path: "/working_groups"
path: "/working-groups"
port:
targetPort: "http"
tls:
......
......@@ -23,7 +23,7 @@ import io.restassured.http.ContentType;
@QuarkusTest
class WorkingGroupsResourceTest {
public final static String WGS_BASE_URL = "/working_groups";
public final static String WGS_BASE_URL = "/working-groups";
public final static String WG_STATUS_URL = WGS_BASE_URL + "?status={param}";
public final static String WG_STATUSES_URL = WGS_BASE_URL + "?status={param1}&status={param2}";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment