> +@QueryParams(keys = "api-version", values = "2015-06-15")
> +@RequestFilters(OAuthFilter.class)
> +@Consumes(MediaType.APPLICATION_JSON)
> +public interface SubnetApi {
> +
> +   @Named("subnet:list")
> +   @SelectJson("value")
> +   @GET
> +   @Fallback(EmptyListOnNotFoundOr404.class)
> +   List<Subnet> listSubnets();
> +
> +   @Named("subnet:create_or_update")
> +   @Path("/{subnetname}")
> +   @MapBinder(BindToJsonPayload.class)
> +   @PUT
> +   @Fallback(NullOnNotFoundOr404.class)

Avoid to silently return `null` on 404 errors for write operations. Remove this 
fallback.

---
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/262/files/1801c68f227e1f245a30c6fa6ff044e7e2634460#r60746046

Reply via email to