> +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);
> +
> + @Named("keys:get-key")
Use just `keys:get`, to follow the convention used in the create method (and
this is already prefixed as key).
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/234/files#r52901763