From f758bde077cb3215d94dca7b9109dfb865edae8e Mon Sep 17 00:00:00 2001 From: anhefti Date: Thu, 7 Mar 2019 12:27:11 +0100 Subject: [PATCH] fix compile error --- .../gui/service/remote/webservice/api/RestService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/service/remote/webservice/api/RestService.java b/src/main/java/ch/ethz/seb/sebserver/gui/service/remote/webservice/api/RestService.java index 6d6a50dd..69416bd9 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/service/remote/webservice/api/RestService.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/service/remote/webservice/api/RestService.java @@ -80,7 +80,8 @@ public class RestService { throw new IllegalArgumentException("ActionDefinition needs to define a restCallType to use this action"); } - return this.getBuilder(action.definition.restCallType) + final RestCall.RestCallBuilder builder = this.getBuilder(action.definition.restCallType); + return builder .withURIVariable( API.PARAM_MODEL_ID, action.pageContext().getAttribute(AttributeKeys.ENTITY_ID))