diff --git a/core/com.b2international.snowowl.core.rest/src/com/b2international/snowowl/core/rest/bundle/BundleRestService.java b/core/com.b2international.snowowl.core.rest/src/com/b2international/snowowl/core/rest/bundle/BundleRestService.java index 270cc15fa53..dac374ced4a 100644 --- a/core/com.b2international.snowowl.core.rest/src/com/b2international/snowowl/core/rest/bundle/BundleRestService.java +++ b/core/com.b2international.snowowl.core.rest/src/com/b2international/snowowl/core/rest/bundle/BundleRestService.java @@ -110,16 +110,13 @@ public Promise get( @PathVariable(value="bundleId", required = true) final String bundleId, - @Parameter(description = "The timestamp to use for historical ('as of') queries", deprecated = true) - final Long timestamp, - @ParameterObject final ResourceSelectors selectors) { - return ResourceRequests.bundles().prepareGet(bundleId.contains(RevisionIndex.AT_CHAR) || timestamp == null ? Bundle.uri(bundleId) : Bundle.uri(bundleId).withTimestampPart(RevisionIndex.AT_CHAR + timestamp)) + return ResourceRequests.bundles().prepareGet(Bundle.uri(bundleId)) .setExpand(selectors.getExpand()) .setFields(selectors.getField()) - .buildAsync(timestamp) + .buildAsync() .execute(getBus()); } diff --git a/core/com.b2international.snowowl.core.rest/src/com/b2international/snowowl/core/rest/codesystem/CodeSystemRestService.java b/core/com.b2international.snowowl.core.rest/src/com/b2international/snowowl/core/rest/codesystem/CodeSystemRestService.java index c97940b0acd..9c7a7c142ce 100644 --- a/core/com.b2international.snowowl.core.rest/src/com/b2international/snowowl/core/rest/codesystem/CodeSystemRestService.java +++ b/core/com.b2international.snowowl.core.rest/src/com/b2international/snowowl/core/rest/codesystem/CodeSystemRestService.java @@ -24,7 +24,6 @@ import org.springframework.web.bind.annotation.*; import com.b2international.commons.exceptions.NotFoundException; -import com.b2international.index.revision.RevisionIndex; import com.b2international.snowowl.core.codesystem.CodeSystem; import com.b2international.snowowl.core.codesystem.CodeSystemRequests; import com.b2international.snowowl.core.codesystem.CodeSystems; @@ -117,13 +116,10 @@ public Promise get( @PathVariable(value="codeSystemId", required = true) final String codeSystemId, - @Parameter(description = "The timestamp to use for historical ('as of') queries", deprecated = true) - final Long timestamp, - @ParameterObject final ResourceSelectors selectors) { - return CodeSystemRequests.prepareGetCodeSystem(codeSystemId.contains(RevisionIndex.AT_CHAR) || timestamp == null ? CodeSystem.uri(codeSystemId) : CodeSystem.uri(codeSystemId).withTimestampPart(RevisionIndex.AT_CHAR + timestamp)) + return CodeSystemRequests.prepareGetCodeSystem(CodeSystem.uri(codeSystemId)) .setExpand(selectors.getExpand()) .setFields(selectors.getField()) .buildAsync()