src/main/java/com/mastfrog/webapi/Invoker.java
public static <T extends Enum<T> & WebCallEnum> Invoker<T> create(URL baseUrl, Class<T> webApi) throws IOException {
        Dependencies deps = Dependencies.builder().add(new StandaloneModule(baseUrl))
                .add(new WebApiModule(webApi)).build();
        return deps.getInstance(Invoker.class);
    }
/**
     * Create a standalone Web API invoker for the passed base URL and Web API
     * enum type. This method creates all of the Guice plumbing used to drive
     * the invoker under the hood. Use this for deployment in simple apps which
     * have no other need for dependency injection; otherwise, you may want to
     * use
     * <a href="WebApiModule.class"><code>WebApiModule</code></a> and set up
     * injection explicitly (in which case you need to bind
     * <code>com.mastfrog.url.URL</code> and
     * <code>com.mastfrog.netty.HttpClient</code> and Jackson's
     * <code>ObjectMapper</code>.
     *
     * @param <T> The type
     * @param baseUrl The base URL for api calls
     * @param webApi An enum whose constants implement WebCall
     * @return An invoker
     * @throws IOException
     */
Create a standalone Web API invoker for the passed base URL and Web API
enum type. This method creates all of the Guice plumbing used to drive
the invoker under the hood. Use this for deployment in simple apps which
have no other need for dependency injection; otherwise, you may want to
use
WebApiModule and set up
injection explicitly (in which case you need to bind
com.mastfrog.url.URL and
com.mastfrog.netty.HttpClient and Jackson's
ObjectMapper.


Create a standalone Web API invoker for the passed base URL and Web API enum type . This method creates all of the Guice plumbing used to drive the invoker under the hood . Use this for deployment in simple apps which have no other need for dependency injection ; otherwise you may want to use WebApiModule and set up injection explicitly ( in which case you need to bind com . mastfrog . url . URL and com . mastfrog . netty . HttpClient and Jackson ' s ObjectMapper .
public static <T extends Enum<T> & WebCallEnum> Invoker<T> create(URL baseUrl, Class<T> webApi) throws IOException {
        Dependencies deps = Dependencies.builder().add(new StandaloneModule(baseUrl))
                .add(new WebApiModule(webApi)).build();
        return deps.getInstance(Invoker.class);
    }
public static < T extends Enum < T > & WebCallEnum > Invoker < T > create ( URL baseUrl , Class < T > webApi ) throws IOException { Dependencies deps = Dependencies . builder ( ) . add ( new StandaloneModule ( baseUrl ) ) . add ( new WebApiModule ( webApi ) ) . build ( ) ; return deps . getInstance ( Invoker . class ) ; }
Create a standalone Web API invoker for the passed base URL and Web API
 enum type.
Create a standalone Web API invoker for the passed base URL and Web API enum type .