> +import org.jclouds.rest.annotations.MapBinder;
> +import org.jclouds.rest.annotations.PayloadParam;
> +import org.jclouds.rest.annotations.RequestFilters;
> +import org.jclouds.rest.annotations.ResponseParser;
> +import org.jclouds.rest.binders.BindToJsonPayload;
> +
> +@BlobScope(CONTAINER)
> +public interface ObjectApi {
> +   @Named("b2_get_upload_url")
> +   @POST
> +   @Path("/b2api/v1/b2_get_upload_url")
> +   @RequestFilters(RequestAuthorization.class)
> +   @MapBinder(BindToJsonPayload.class)
> +   @Consumes(APPLICATION_JSON)
> +   @Produces(APPLICATION_JSON)
> +   UploadUrlResponse getUploadUrl(@PayloadParam("bucketId") String bucketId);

I'm not sure about this -- users will likely directly feed the result of 
`getUploadUrl` into `uploadFile`.  Throwing `ContainerNotFoundException` in the 
former gives more information that the `NullPointerException` from the latter.

---
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/276/files/d27eef19e1ef39d560170786aa7a9ef1f711b71b#r66385850

Reply via email to