Moved the service path of VC admin services to admin/vc (closed #543)
Change-Id: Ifd30f4523692e843ddbbf9d717899e2268099f6b
diff --git a/full/Changes b/full/Changes
index b587656..ea0bc02 100644
--- a/full/Changes
+++ b/full/Changes
@@ -1,5 +1,8 @@
# version 0.69.3
+- Moved the service path of VC admin services to admin/vc (closed #543)
+
+
# version 0.69.2
2022-12-05
diff --git a/full/src/main/java/de/ids_mannheim/korap/web/controller/VirtualCorpusAdminController.java b/full/src/main/java/de/ids_mannheim/korap/web/controller/VirtualCorpusAdminController.java
index d9fb208..14de314 100644
--- a/full/src/main/java/de/ids_mannheim/korap/web/controller/VirtualCorpusAdminController.java
+++ b/full/src/main/java/de/ids_mannheim/korap/web/controller/VirtualCorpusAdminController.java
@@ -23,7 +23,7 @@
import de.ids_mannheim.korap.web.utils.ResourceFilters;
@Controller
-@Path("{version}/vc/admin")
+@Path("{version}/admin/vc")
@Produces(MediaType.APPLICATION_JSON + ";charset=utf-8")
@ResourceFilters({ APIVersionFilter.class, AdminFilter.class })
public class VirtualCorpusAdminController {
diff --git a/full/src/test/java/de/ids_mannheim/korap/web/controller/VirtualCorpusControllerAdminTest.java b/full/src/test/java/de/ids_mannheim/korap/web/controller/VirtualCorpusControllerAdminTest.java
index 484a7d1..7038d4c 100644
--- a/full/src/test/java/de/ids_mannheim/korap/web/controller/VirtualCorpusControllerAdminTest.java
+++ b/full/src/test/java/de/ids_mannheim/korap/web/controller/VirtualCorpusControllerAdminTest.java
@@ -136,8 +136,8 @@
Form f = new Form();
f.param("createdBy", username);
- Response response = target().path(API_VERSION).path("vc")
- .path("admin").path("list")
+ Response response = target().path(API_VERSION).path("admin")
+ .path("vc").path("list")
.request()
.header(Attributes.AUTHORIZATION, HttpAuthorizationHandler
.createBasicAuthorizationHeaderValue(admin, "pass"))
@@ -157,7 +157,7 @@
f.param("type", type.toString());
f.param("token", "secret");
- Response response = target().path(API_VERSION).path("vc").path("admin")
+ Response response = target().path(API_VERSION).path("admin").path("vc")
.path("list").request()
.header(Attributes.AUTHORIZATION, HttpAuthorizationHandler
.createBasicAuthorizationHeaderValue(admin, "pass"))