From 314522fd0e50b828ff1ca4561cccae1837498d6b Mon Sep 17 00:00:00 2001 From: Hakan Ozler Date: Fri, 15 Sep 2017 14:24:42 +0300 Subject: [PATCH] set default tag to latest --- src/main/java/com/kodcu/rapid/path/Image.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/kodcu/rapid/path/Image.java b/src/main/java/com/kodcu/rapid/path/Image.java index cd9b429..c3527da 100644 --- a/src/main/java/com/kodcu/rapid/path/Image.java +++ b/src/main/java/com/kodcu/rapid/path/Image.java @@ -219,7 +219,7 @@ public Response deleteImage(@PathParam("id") String id, @POST @Path("create") public ResponseFrame createImage(@QueryParam("fromImage") String fromImage, - @QueryParam("tag") String tag) { + @DefaultValue("latest") @QueryParam("tag") String tag) { WebTarget target = resource().path(IMAGES).path("create") .queryParam("fromImage", fromImage)