> +@Consumes(MediaType.APPLICATION_JSON)
> +@RequestFilters({ ServiceKeyAuthentication.class })
> +@Path("/api/servicekeys")
> +public interface ServiceKeysApi {
> +
> +   @Named("servicekeys:list")
> +   @GET
> +   List<ServiceKey> listServiceKeys();
> +   
> +   @Named("servicekeys:create")
> +   @POST
> +   ServiceKey createServiceKey(@BinderParam(BindToJsonPayload.class) 
> CreateServiceKey createServiceKey);
> +   
> +   @Named("servicekeys:delete")
> +   @DELETE
> +   void deleteServiceKey(@BinderParam(BindToJsonPayload.class) 
> DeleteServiceKey deleteServiceKey);

Aaahhh that's much cleaner! Let me jump on that now.

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

Reply via email to