> +import org.jclouds.shipyard.filters.ServiceKeyAuthentication;
> +
> +@Consumes(MediaType.APPLICATION_JSON)
> +@RequestFilters({ ServiceKeyAuthentication.class })
> +public interface ContainersApi {
> +
> + @Named("containers:list")
> + @GET
> + @Path("/api/containers")
> + @Fallback(EmptyListOnNotFoundOr404.class)
> + List<ContainerInfo> listContainers();
> +
> + @Named("containers:info")
> + @GET
> + @Path("/api/containers/{id}")
> + @Fallback(NullOn500.class)
When can a 500 error happen? Why returning `null` instead of failing?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/116/files#r21862739