Updated paths of user-group deletion-controllers
Change-Id: I3009489853f8a541e9f94966d1cfd75ce6ece780
diff --git a/full/src/main/java/de/ids_mannheim/korap/web/controller/UserGroupController.java b/full/src/main/java/de/ids_mannheim/korap/web/controller/UserGroupController.java
index ec633fb..dd34a1f 100644
--- a/full/src/main/java/de/ids_mannheim/korap/web/controller/UserGroupController.java
+++ b/full/src/main/java/de/ids_mannheim/korap/web/controller/UserGroupController.java
@@ -171,9 +171,9 @@
* @return HTTP 200, if successful.
*/
@DELETE
- @Path("delete")
+ @Path("delete/{groupId}")
public Response deleteUserGroup (@Context SecurityContext securityContext,
- @QueryParam("groupId") int groupId) {
+ @PathParam("groupId") int groupId) {
TokenContext context =
(TokenContext) securityContext.getUserPrincipal();
try {
@@ -193,11 +193,11 @@
* @return if successful, HTTP response status OK
*/
@DELETE
- @Path("member/delete")
+ @Path("member/delete/{groupId}/{memberId}")
public Response deleteUserFromGroup (
@Context SecurityContext securityContext,
- @QueryParam("memberId") String memberId,
- @QueryParam("groupId") int groupId) {
+ @PathParam("memberId") String memberId,
+ @PathParam("groupId") int groupId) {
TokenContext context =
(TokenContext) securityContext.getUserPrincipal();
try {
diff --git a/full/src/main/resources/log4j2.properties b/full/src/main/resources/log4j2.properties
index 1038fe2..b616418 100644
--- a/full/src/main/resources/log4j2.properties
+++ b/full/src/main/resources/log4j2.properties
@@ -14,12 +14,12 @@
rootLogger.appenderRefs = stdout
rootLogger.appenderRef.stdout.ref = STDOUT
-#loggers=file
-#logger.file.name=de.ids_mannheim.korap
-#logger.file.level = error
-#logger.file.appenderRefs = file
-#logger.file.appenderRef.file.ref = ERRORLOG
-#logger.file.additivity=true
+loggers=file
+logger.file.name=de.ids_mannheim.korap
+logger.file.level = error
+logger.file.appenderRefs = file
+logger.file.appenderRef.file.ref = ERRORLOG
+logger.file.additivity=true
#loggers=file
#logger.file.name=com.sun.jersey.test.framework.spi.container