Swagr code-gen: Refactoring tasks, imports configurable, enum classes generation, sets handled and allowMultiple handling for params

This commit is contained in:
Deepak Michael
2011-07-25 12:03:18 +05:30
parent ad1a670bef
commit 18b06fd8c3
17 changed files with 332 additions and 45 deletions

View File

@@ -3,14 +3,16 @@ package com.wordnik.api;
import com.wordnik.common.*;
import com.wordnik.common.ext.*;
import com.wordnik.exception.APIExceptionCodes;
import com.wordnik.exception.APIException;
import com.wordnik.model.*;
import java.util.*;
import com.wordnik.annotations.MethodArgumentNames;
import $exceptionPackageName$.APIExceptionCodes;
import $exceptionPackageName$.APIException;
import org.codehaus.jackson.map.DeserializationConfig.Feature;
import org.codehaus.jackson.map.ObjectMapper;
import org.codehaus.jackson.type.TypeReference;
import java.util.*;
import java.io.IOException;
/**

View File

@@ -52,7 +52,7 @@ public class WordnikAPI {
* used while building the driver. This value should be provided while testing the APIs against
* test servers or if there is any changes in production server URLs.
* @param enableLogging This will enable the logging using Jersey logging filter. Refer the following documentation
* for more details. {@link LoggingFilter}. Default output is sent to system.out.
* for more details. {@link LoggingFilter}. Default output is sent to system.out.
* Create a logger ({@link Logger} class and set using setLogger method.
*/
public static void initialize(String apiKey, String apiServer, boolean enableLogging) {