> +import org.jclouds.rest.annotations.PATCH;
> +import org.jclouds.rest.annotations.PayloadParam;
> +import org.jclouds.rest.annotations.RequestFilters;
> +import org.jclouds.rest.annotations.ResponseParser;
> +import org.jclouds.rest.annotations.SelectJson;
> +import org.jclouds.util.Strings2;
> +
> +@Path("/datacenters/{dataCenterId}/servers/{serverId}/nics")
> +@RequestFilters(BasicAuthentication.class)
> +public interface NicApi extends Closeable {
> +
> + @Named("nic:list")
> + @GET
> + @SelectJson("items")
> + @Fallback(EmptyListOnNotFoundOr404.class)
> + List<Nic> getList(@PathParam("dataCenterId") String dataCenterId,
> @PathParam("serverId") String serverId);
This was already discussed. Let's start using a consistent naming in new APIs
()feel free to modify the existing ones if you want). Rename this to just
"list", the get operations to just "get", etc. This is the NicApi, so there is
no need for the method names to include the context of what entity is being
managed.
---
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/249/files/a17eac2160481358b8735aab30ecf12d672b341b#r56995302