nacx commented on this pull request.


> +import javax.ws.rs.Produces;
+import javax.ws.rs.QueryParam;
+import javax.ws.rs.core.MediaType;
+import java.util.List;
+
+@RequestFilters({ BasicAuthentication.class, OrganisationIdFilter.class })
+@Consumes(MediaType.APPLICATION_JSON)
+@Path("/{jclouds.api-version}/network")
+public interface NetworkApi {
+
+   @Named("network:deployNetworkDomain")
+   @POST
+   @Path("/deployNetworkDomain")
+   @Produces(MediaType.APPLICATION_JSON)
+   @MapBinder(BindToJsonPayload.class)
+   Response deployNetworkDomain(@PayloadParam("datacenterId") String 
datacenterId, @PayloadParam("name") String name,

Instead of doing this, the utils class should be refactored to a Function that 
can be configured as a `@ResponseParser`. You could have a base class and 
define a specific response parser class for each method that just initialized 
the name of the property. Then you could have the API methods just return the 
String with the ID.

-- 
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/389#discussion_r116943534

Reply via email to