> +
> +import org.jclouds.javax.annotation.Nullable;
> +import org.jclouds.rest.annotations.Fallback;
> +import org.jclouds.etcd.domain.keys.Key;
> +import org.jclouds.etcd.fallbacks.EtcdFallbacks.NullOnKeyNonFoundAnd404;
> +
> +@Consumes(MediaType.APPLICATION_JSON)
> +@Path("/{jclouds.api-version}/keys")
> +public interface KeysApi {
> +
> +     @Named("keys:create")
> +     @PUT
> +     @Path("/{key}")
> +     Key createKey(@PathParam("key") String key, 
> +              @FormParam("value") String value, 
> +              @Nullable @FormParam("ttl") Integer seconds);

It would look cleaner to have an overloaded method, one without TTL and another 
with an `int` (primitive) TTL.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/234/files#r52901654

Reply via email to