> +   @RequestFilters(ReplacePayloadAccountId.class)
> +   @Consumes(APPLICATION_JSON)
> +   Bucket updateBucket(@PayloadParam("bucketId") String bucketId, 
> @PayloadParam("bucketType") BucketType bucketType);
> +
> +   @Named("b2_list_buckets")
> +   @POST
> +   @Path("/b2api/v1/b2_list_buckets")
> +   @Payload("{\"accountId\":\"{accountId}\"}")
> +   @RequestFilters(ReplacePayloadAccountId.class)
> +   @Consumes(APPLICATION_JSON)
> +   BucketList listBuckets();
> +
> +   static final class ReplacePayloadAccountId implements HttpRequestFilter {
> +      @Override
> +      public HttpRequest filter(HttpRequest request) throws HttpException {
> +         String accountId = request.getFirstHeaderOrNull("accountId");  // 
> TODO: hack

See below.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/270/files/08f67d68c03760ce134ccf217c3b1ee4487ac318#r64118384

Reply via email to