Merge branch 'punksta-master'

This commit is contained in:
wing328 2016-10-12 15:49:30 +08:00
commit 12ccdcddcd
114 changed files with 564 additions and 558 deletions

View File

@ -27,7 +27,7 @@ public interface {{classname}} {
{{/allParams}} * @return {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}} {{/allParams}} * @return {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}void{{/returnType}}
*/ */
{{#formParams}}{{#-first}} {{#formParams}}{{#-first}}
{{#isMultipart}}@Multipart{{/isMultipart}}{{^isMultipart}}@FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}} {{#isMultipart}}@retrofit.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit.http.FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
@{{httpMethod}}("{{path}}") @{{httpMethod}}("{{path}}")
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}} {{operationId}}({{^allParams}});{{/allParams}} {{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}} {{operationId}}({{^allParams}});{{/allParams}}
{{#allParams}}{{>libraries/retrofit/queryParams}}{{>libraries/retrofit/pathParams}}{{>libraries/retrofit/headerParams}}{{>libraries/retrofit/bodyParams}}{{>libraries/retrofit/formParams}}{{#hasMore}}, {{/hasMore}}{{^hasMore}} {{#allParams}}{{>libraries/retrofit/queryParams}}{{>libraries/retrofit/pathParams}}{{>libraries/retrofit/headerParams}}{{>libraries/retrofit/bodyParams}}{{>libraries/retrofit/formParams}}{{#hasMore}}, {{/hasMore}}{{^hasMore}}
@ -41,7 +41,7 @@ public interface {{classname}} {
* @return void * @return void
*/ */
{{#formParams}}{{#-first}} {{#formParams}}{{#-first}}
{{#isMultipart}}@Multipart{{/isMultipart}}{{^isMultipart}}@FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}} {{#isMultipart}}@retrofit.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit.http.FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
@{{httpMethod}}("{{path}}") @{{httpMethod}}("{{path}}")
void {{operationId}}( void {{operationId}}(
{{#allParams}}{{>libraries/retrofit/queryParams}}{{>libraries/retrofit/pathParams}}{{>libraries/retrofit/headerParams}}{{>libraries/retrofit/bodyParams}}{{>libraries/retrofit/formParams}}, {{/allParams}}Callback<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> cb {{#allParams}}{{>libraries/retrofit/queryParams}}{{>libraries/retrofit/pathParams}}{{>libraries/retrofit/headerParams}}{{>libraries/retrofit/bodyParams}}{{>libraries/retrofit/formParams}}, {{/allParams}}Callback<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> cb

View File

@ -1 +1 @@
{{#isBodyParam}}@Body {{{dataType}}} {{paramName}}{{/isBodyParam}} {{#isBodyParam}}@retrofit.http.Body {{{dataType}}} {{paramName}}{{/isBodyParam}}

View File

@ -1 +1 @@
{{#isFormParam}}{{#notFile}}{{#isMultipart}}@Part{{/isMultipart}}{{^isMultipart}}@Field{{/isMultipart}}("{{baseName}}") {{{dataType}}} {{paramName}}{{/notFile}}{{#isFile}}{{#isMultipart}}@Part{{/isMultipart}}{{^isMultipart}}@Field{{/isMultipart}}("{{baseName}}") TypedFile {{paramName}}{{/isFile}}{{/isFormParam}} {{#isFormParam}}{{#notFile}}{{#isMultipart}}@retrofit.http.Part{{/isMultipart}}{{^isMultipart}}@retrofit.http.Field{{/isMultipart}}("{{baseName}}") {{{dataType}}} {{paramName}}{{/notFile}}{{#isFile}}{{#isMultipart}}@retrofit.http.Part{{/isMultipart}}{{^isMultipart}}@retrofit.http.Field{{/isMultipart}}("{{baseName}}") TypedFile {{paramName}}{{/isFile}}{{/isFormParam}}

View File

@ -1 +1 @@
{{#isHeaderParam}}@Header("{{baseName}}") {{{dataType}}} {{paramName}}{{/isHeaderParam}} {{#isHeaderParam}}@retrofit.http.Header("{{baseName}}") {{{dataType}}} {{paramName}}{{/isHeaderParam}}

View File

@ -1 +1 @@
{{#isPathParam}}@Path("{{baseName}}") {{{dataType}}} {{paramName}}{{/isPathParam}} {{#isPathParam}}@retrofit.http.Path("{{baseName}}") {{{dataType}}} {{paramName}}{{/isPathParam}}

View File

@ -1 +1 @@
{{#isQueryParam}}@Query("{{baseName}}") {{#collectionFormat}}{{#isCollectionFormatMulti}}{{{dataType}}}{{/isCollectionFormatMulti}}{{^isCollectionFormatMulti}}{{{collectionFormat.toUpperCase}}}Params{{/isCollectionFormatMulti}}{{/collectionFormat}}{{^collectionFormat}}{{{dataType}}}{{/collectionFormat}} {{paramName}}{{/isQueryParam}} {{#isQueryParam}}@retrofit.http.Query("{{baseName}}") {{#collectionFormat}}{{#isCollectionFormatMulti}}{{{dataType}}}{{/isCollectionFormatMulti}}{{^isCollectionFormatMulti}}{{{collectionFormat.toUpperCase}}}Params{{/isCollectionFormatMulti}}{{/collectionFormat}}{{^collectionFormat}}{{{dataType}}}{{/collectionFormat}} {{paramName}}{{/isQueryParam}}

View File

@ -28,7 +28,7 @@ public interface {{classname}} {
{{/allParams}} * @return Call&lt;{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}&gt; {{/allParams}} * @return Call&lt;{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}&gt;
*/ */
{{#formParams}}{{#-first}} {{#formParams}}{{#-first}}
{{#isMultipart}}@Multipart{{/isMultipart}}{{^isMultipart}}@FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}} {{#isMultipart}}@retrofit2.http.Multipart{{/isMultipart}}{{^isMultipart}}@retrofit2.http.FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
@{{httpMethod}}("{{path}}") @{{httpMethod}}("{{path}}")
{{#useRxJava}}Observable{{/useRxJava}}{{^useRxJava}}Call{{/useRxJava}}<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}({{^allParams}});{{/allParams}} {{#useRxJava}}Observable{{/useRxJava}}{{^useRxJava}}Call{{/useRxJava}}<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> {{operationId}}({{^allParams}});{{/allParams}}
{{#allParams}}{{>libraries/retrofit2/queryParams}}{{>libraries/retrofit2/pathParams}}{{>libraries/retrofit2/headerParams}}{{>libraries/retrofit2/bodyParams}}{{>libraries/retrofit2/formParams}}{{#hasMore}}, {{/hasMore}}{{^hasMore}} {{#allParams}}{{>libraries/retrofit2/queryParams}}{{>libraries/retrofit2/pathParams}}{{>libraries/retrofit2/headerParams}}{{>libraries/retrofit2/bodyParams}}{{>libraries/retrofit2/formParams}}{{#hasMore}}, {{/hasMore}}{{^hasMore}}

View File

@ -1 +1 @@
{{#isBodyParam}}@Body {{{dataType}}} {{paramName}}{{/isBodyParam}} {{#isBodyParam}}@retrofit2.http.Body {{{dataType}}} {{paramName}}{{/isBodyParam}}

View File

@ -1 +1 @@
{{#isFormParam}}{{#notFile}}{{#isMultipart}}@Part{{/isMultipart}}{{^isMultipart}}@Field{{/isMultipart}}("{{baseName}}") {{{dataType}}} {{paramName}}{{/notFile}}{{#isFile}}{{#isMultipart}}@Part{{/isMultipart}}{{^isMultipart}}@Field{{/isMultipart}}("{{baseName}}\"; filename=\"{{baseName}}") RequestBody {{paramName}}{{/isFile}}{{/isFormParam}} {{#isFormParam}}{{#notFile}}{{#isMultipart}}@retrofit2.http.Part{{/isMultipart}}{{^isMultipart}}@retrofit2.http.Field{{/isMultipart}}("{{baseName}}") {{{dataType}}} {{paramName}}{{/notFile}}{{#isFile}}{{#isMultipart}}@retrofit2.http.Part{{/isMultipart}}{{^isMultipart}}@retrofit2.http.Field{{/isMultipart}}("{{baseName}}\"; filename=\"{{baseName}}") RequestBody {{paramName}}{{/isFile}}{{/isFormParam}}

View File

@ -0,0 +1 @@
{{#isFormParam}}{{#notFile}}{{#isMultipart}}retrofit.http@retrofit2.http.Part{{/isMultipart}}{{^isMultipart}}@Field{{/isMultipart}}("{{baseName}}") {{{dataType}}} {{paramName}}{{/notFile}}{{#isFile}}{{#isMultipart}}@Part{{/isMultipart}}{{^isMultipart}}@Field{{/isMultipart}}("{{baseName}}\"; filename=\"{{baseName}}") RequestBody {{paramName}}{{/isFile}}{{/isFormParam}}

View File

@ -1 +1 @@
{{#isHeaderParam}}@Header("{{baseName}}") {{{dataType}}} {{paramName}}{{/isHeaderParam}} {{#isHeaderParam}}@retrofit2.http.Header("{{baseName}}") {{{dataType}}} {{paramName}}{{/isHeaderParam}}

View File

@ -1 +1 @@
{{#isPathParam}}@Path("{{baseName}}") {{{dataType}}} {{paramName}}{{/isPathParam}} {{#isPathParam}}@retrofit2.http.Path("{{baseName}}") {{{dataType}}} {{paramName}}{{/isPathParam}}

View File

@ -1 +1 @@
{{#isQueryParam}}@Query("{{baseName}}") {{#collectionFormat}}{{#isCollectionFormatMulti}}{{{dataType}}}{{/isCollectionFormatMulti}}{{^isCollectionFormatMulti}}{{{collectionFormat.toUpperCase}}}Params{{/isCollectionFormatMulti}}{{/collectionFormat}}{{^collectionFormat}}{{{dataType}}}{{/collectionFormat}} {{paramName}}{{/isQueryParam}} {{#isQueryParam}}@retrofit2.http.Query("{{baseName}}") {{#collectionFormat}}{{#isCollectionFormatMulti}}{{{dataType}}}{{/isCollectionFormatMulti}}{{^isCollectionFormatMulti}}{{{collectionFormat.toUpperCase}}}Params{{/isCollectionFormatMulti}}{{/collectionFormat}}{{^collectionFormat}}{{{dataType}}}{{/collectionFormat}} {{paramName}}{{/isQueryParam}}

View File

@ -1,90 +1,90 @@
@if "%DEBUG%" == "" @echo off @if "%DEBUG%" == "" @echo off
@rem ########################################################################## @rem ##########################################################################
@rem @rem
@rem Gradle startup script for Windows @rem Gradle startup script for Windows
@rem @rem
@rem ########################################################################## @rem ##########################################################################
@rem Set local scope for the variables with windows NT shell @rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal if "%OS%"=="Windows_NT" setlocal
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS= set DEFAULT_JVM_OPTS=
set DIRNAME=%~dp0 set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=. if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0 set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME% set APP_HOME=%DIRNAME%
@rem Find java.exe @rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1 %JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init if "%ERRORLEVEL%" == "0" goto init
echo. echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo. echo.
echo Please set the JAVA_HOME variable in your environment to match the echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation. echo location of your Java installation.
goto fail goto fail
:findJavaFromJavaHome :findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=% set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init if exist "%JAVA_EXE%" goto init
echo. echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo. echo.
echo Please set the JAVA_HOME variable in your environment to match the echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation. echo location of your Java installation.
goto fail goto fail
:init :init
@rem Get command-line arguments, handling Windows variants @rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args if "%@eval[2+2]" == "4" goto 4NT_args
:win9xME_args :win9xME_args
@rem Slurp the command line arguments. @rem Slurp the command line arguments.
set CMD_LINE_ARGS= set CMD_LINE_ARGS=
set _SKIP=2 set _SKIP=2
:win9xME_args_slurp :win9xME_args_slurp
if "x%~1" == "x" goto execute if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%* set CMD_LINE_ARGS=%*
goto execute goto execute
:4NT_args :4NT_args
@rem Get arguments from the 4NT Shell from JP Software @rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$ set CMD_LINE_ARGS=%$
:execute :execute
@rem Setup the command line @rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle @rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end :end
@rem End local scope for the variables with windows NT shell @rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd if "%ERRORLEVEL%"=="0" goto mainEnd
:fail :fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code! rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1 exit /b 1
:mainEnd :mainEnd
if "%OS%"=="Windows_NT" endlocal if "%OS%"=="Windows_NT" endlocal
:omega :omega

View File

@ -8,8 +8,8 @@ import retrofit.mime.*;
import io.swagger.client.model.Client; import io.swagger.client.model.Client;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
import java.math.BigDecimal;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
@ -27,7 +27,7 @@ public interface FakeApi {
@PATCH("/fake") @PATCH("/fake")
Client testClientModel( Client testClientModel(
@Body Client body @retrofit.http.Body Client body
); );
/** /**
@ -40,7 +40,7 @@ public interface FakeApi {
@PATCH("/fake") @PATCH("/fake")
void testClientModel( void testClientModel(
@Body Client body, Callback<Client> cb @retrofit.http.Body Client body, Callback<Client> cb
); );
/** /**
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -59,13 +59,14 @@ public interface FakeApi {
* @param date None (optional) * @param date None (optional)
* @param dateTime None (optional) * @param dateTime None (optional)
* @param password None (optional) * @param password None (optional)
* @param paramCallback None (optional)
* @return Void * @return Void
*/ */
@FormUrlEncoded @retrofit.http.FormUrlEncoded
@POST("/fake") @POST("/fake")
Void testEndpointParameters( Void testEndpointParameters(
@Field("number") BigDecimal number, @Field("double") Double _double, @Field("pattern_without_delimiter") String patternWithoutDelimiter, @Field("byte") byte[] _byte, @Field("integer") Integer integer, @Field("int32") Integer int32, @Field("int64") Long int64, @Field("float") Float _float, @Field("string") String string, @Field("binary") byte[] binary, @Field("date") LocalDate date, @Field("dateTime") DateTime dateTime, @Field("password") String password @retrofit.http.Field("number") BigDecimal number, @retrofit.http.Field("double") Double _double, @retrofit.http.Field("pattern_without_delimiter") String patternWithoutDelimiter, @retrofit.http.Field("byte") byte[] _byte, @retrofit.http.Field("integer") Integer integer, @retrofit.http.Field("int32") Integer int32, @retrofit.http.Field("int64") Long int64, @retrofit.http.Field("float") Float _float, @retrofit.http.Field("string") String string, @retrofit.http.Field("binary") byte[] binary, @retrofit.http.Field("date") LocalDate date, @retrofit.http.Field("dateTime") DateTime dateTime, @retrofit.http.Field("password") String password, @retrofit.http.Field("callback") String paramCallback
); );
/** /**
@ -84,14 +85,15 @@ public interface FakeApi {
* @param date None (optional) * @param date None (optional)
* @param dateTime None (optional) * @param dateTime None (optional)
* @param password None (optional) * @param password None (optional)
* @param paramCallback None (optional)
* @param cb callback method * @param cb callback method
* @return void * @return void
*/ */
@FormUrlEncoded @retrofit.http.FormUrlEncoded
@POST("/fake") @POST("/fake")
void testEndpointParameters( void testEndpointParameters(
@Field("number") BigDecimal number, @Field("double") Double _double, @Field("pattern_without_delimiter") String patternWithoutDelimiter, @Field("byte") byte[] _byte, @Field("integer") Integer integer, @Field("int32") Integer int32, @Field("int64") Long int64, @Field("float") Float _float, @Field("string") String string, @Field("binary") byte[] binary, @Field("date") LocalDate date, @Field("dateTime") DateTime dateTime, @Field("password") String password, Callback<Void> cb @retrofit.http.Field("number") BigDecimal number, @retrofit.http.Field("double") Double _double, @retrofit.http.Field("pattern_without_delimiter") String patternWithoutDelimiter, @retrofit.http.Field("byte") byte[] _byte, @retrofit.http.Field("integer") Integer integer, @retrofit.http.Field("int32") Integer int32, @retrofit.http.Field("int64") Long int64, @retrofit.http.Field("float") Float _float, @retrofit.http.Field("string") String string, @retrofit.http.Field("binary") byte[] binary, @retrofit.http.Field("date") LocalDate date, @retrofit.http.Field("dateTime") DateTime dateTime, @retrofit.http.Field("password") String password, @retrofit.http.Field("callback") String paramCallback, Callback<Void> cb
); );
/** /**
* To test enum parameters * To test enum parameters
@ -108,10 +110,10 @@ public interface FakeApi {
* @return Void * @return Void
*/ */
@FormUrlEncoded @retrofit.http.FormUrlEncoded
@GET("/fake") @GET("/fake")
Void testEnumParameters( Void testEnumParameters(
@Field("enum_form_string_array") List<String> enumFormStringArray, @Field("enum_form_string") String enumFormString, @Header("enum_header_string_array") List<String> enumHeaderStringArray, @Header("enum_header_string") String enumHeaderString, @Query("enum_query_string_array") CSVParams enumQueryStringArray, @Query("enum_query_string") String enumQueryString, @Query("enum_query_integer") BigDecimal enumQueryInteger, @Field("enum_query_double") Double enumQueryDouble @retrofit.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit.http.Field("enum_form_string") String enumFormString, @retrofit.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit.http.Header("enum_header_string") String enumHeaderString, @retrofit.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit.http.Query("enum_query_string") String enumQueryString, @retrofit.http.Query("enum_query_integer") BigDecimal enumQueryInteger, @retrofit.http.Field("enum_query_double") Double enumQueryDouble
); );
/** /**
@ -129,9 +131,9 @@ public interface FakeApi {
* @return void * @return void
*/ */
@FormUrlEncoded @retrofit.http.FormUrlEncoded
@GET("/fake") @GET("/fake")
void testEnumParameters( void testEnumParameters(
@Field("enum_form_string_array") List<String> enumFormStringArray, @Field("enum_form_string") String enumFormString, @Header("enum_header_string_array") List<String> enumHeaderStringArray, @Header("enum_header_string") String enumHeaderString, @Query("enum_query_string_array") CSVParams enumQueryStringArray, @Query("enum_query_string") String enumQueryString, @Query("enum_query_integer") BigDecimal enumQueryInteger, @Field("enum_query_double") Double enumQueryDouble, Callback<Void> cb @retrofit.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit.http.Field("enum_form_string") String enumFormString, @retrofit.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit.http.Header("enum_header_string") String enumHeaderString, @retrofit.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit.http.Query("enum_query_string") String enumQueryString, @retrofit.http.Query("enum_query_integer") BigDecimal enumQueryInteger, @retrofit.http.Field("enum_query_double") Double enumQueryDouble, Callback<Void> cb
); );
} }

View File

@ -7,8 +7,8 @@ import retrofit.http.*;
import retrofit.mime.*; import retrofit.mime.*;
import io.swagger.client.model.Pet; import io.swagger.client.model.Pet;
import io.swagger.client.model.ModelApiResponse;
import java.io.File; import java.io.File;
import io.swagger.client.model.ModelApiResponse;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
@ -26,7 +26,7 @@ public interface PetApi {
@POST("/pet") @POST("/pet")
Void addPet( Void addPet(
@Body Pet body @retrofit.http.Body Pet body
); );
/** /**
@ -39,7 +39,7 @@ public interface PetApi {
@POST("/pet") @POST("/pet")
void addPet( void addPet(
@Body Pet body, Callback<Void> cb @retrofit.http.Body Pet body, Callback<Void> cb
); );
/** /**
* Deletes a pet * Deletes a pet
@ -52,7 +52,7 @@ public interface PetApi {
@DELETE("/pet/{petId}") @DELETE("/pet/{petId}")
Void deletePet( Void deletePet(
@Path("petId") Long petId, @Header("api_key") String apiKey @retrofit.http.Path("petId") Long petId, @retrofit.http.Header("api_key") String apiKey
); );
/** /**
@ -66,7 +66,7 @@ public interface PetApi {
@DELETE("/pet/{petId}") @DELETE("/pet/{petId}")
void deletePet( void deletePet(
@Path("petId") Long petId, @Header("api_key") String apiKey, Callback<Void> cb @retrofit.http.Path("petId") Long petId, @retrofit.http.Header("api_key") String apiKey, Callback<Void> cb
); );
/** /**
* Finds Pets by status * Finds Pets by status
@ -78,7 +78,7 @@ public interface PetApi {
@GET("/pet/findByStatus") @GET("/pet/findByStatus")
List<Pet> findPetsByStatus( List<Pet> findPetsByStatus(
@Query("status") CSVParams status @retrofit.http.Query("status") CSVParams status
); );
/** /**
@ -91,7 +91,7 @@ public interface PetApi {
@GET("/pet/findByStatus") @GET("/pet/findByStatus")
void findPetsByStatus( void findPetsByStatus(
@Query("status") CSVParams status, Callback<List<Pet>> cb @retrofit.http.Query("status") CSVParams status, Callback<List<Pet>> cb
); );
/** /**
* Finds Pets by tags * Finds Pets by tags
@ -103,7 +103,7 @@ public interface PetApi {
@GET("/pet/findByTags") @GET("/pet/findByTags")
List<Pet> findPetsByTags( List<Pet> findPetsByTags(
@Query("tags") CSVParams tags @retrofit.http.Query("tags") CSVParams tags
); );
/** /**
@ -116,7 +116,7 @@ public interface PetApi {
@GET("/pet/findByTags") @GET("/pet/findByTags")
void findPetsByTags( void findPetsByTags(
@Query("tags") CSVParams tags, Callback<List<Pet>> cb @retrofit.http.Query("tags") CSVParams tags, Callback<List<Pet>> cb
); );
/** /**
* Find pet by ID * Find pet by ID
@ -128,7 +128,7 @@ public interface PetApi {
@GET("/pet/{petId}") @GET("/pet/{petId}")
Pet getPetById( Pet getPetById(
@Path("petId") Long petId @retrofit.http.Path("petId") Long petId
); );
/** /**
@ -141,7 +141,7 @@ public interface PetApi {
@GET("/pet/{petId}") @GET("/pet/{petId}")
void getPetById( void getPetById(
@Path("petId") Long petId, Callback<Pet> cb @retrofit.http.Path("petId") Long petId, Callback<Pet> cb
); );
/** /**
* Update an existing pet * Update an existing pet
@ -153,7 +153,7 @@ public interface PetApi {
@PUT("/pet") @PUT("/pet")
Void updatePet( Void updatePet(
@Body Pet body @retrofit.http.Body Pet body
); );
/** /**
@ -166,7 +166,7 @@ public interface PetApi {
@PUT("/pet") @PUT("/pet")
void updatePet( void updatePet(
@Body Pet body, Callback<Void> cb @retrofit.http.Body Pet body, Callback<Void> cb
); );
/** /**
* Updates a pet in the store with form data * Updates a pet in the store with form data
@ -178,10 +178,10 @@ public interface PetApi {
* @return Void * @return Void
*/ */
@FormUrlEncoded @retrofit.http.FormUrlEncoded
@POST("/pet/{petId}") @POST("/pet/{petId}")
Void updatePetWithForm( Void updatePetWithForm(
@Path("petId") Long petId, @Field("name") String name, @Field("status") String status @retrofit.http.Path("petId") Long petId, @retrofit.http.Field("name") String name, @retrofit.http.Field("status") String status
); );
/** /**
@ -194,10 +194,10 @@ public interface PetApi {
* @return void * @return void
*/ */
@FormUrlEncoded @retrofit.http.FormUrlEncoded
@POST("/pet/{petId}") @POST("/pet/{petId}")
void updatePetWithForm( void updatePetWithForm(
@Path("petId") Long petId, @Field("name") String name, @Field("status") String status, Callback<Void> cb @retrofit.http.Path("petId") Long petId, @retrofit.http.Field("name") String name, @retrofit.http.Field("status") String status, Callback<Void> cb
); );
/** /**
* uploads an image * uploads an image
@ -209,10 +209,10 @@ public interface PetApi {
* @return ModelApiResponse * @return ModelApiResponse
*/ */
@Multipart @retrofit.http.Multipart
@POST("/pet/{petId}/uploadImage") @POST("/pet/{petId}/uploadImage")
ModelApiResponse uploadFile( ModelApiResponse uploadFile(
@Path("petId") Long petId, @Part("additionalMetadata") String additionalMetadata, @Part("file") TypedFile file @retrofit.http.Path("petId") Long petId, @retrofit.http.Part("additionalMetadata") String additionalMetadata, @retrofit.http.Part("file") TypedFile file
); );
/** /**
@ -225,9 +225,9 @@ public interface PetApi {
* @return void * @return void
*/ */
@Multipart @retrofit.http.Multipart
@POST("/pet/{petId}/uploadImage") @POST("/pet/{petId}/uploadImage")
void uploadFile( void uploadFile(
@Path("petId") Long petId, @Part("additionalMetadata") String additionalMetadata, @Part("file") TypedFile file, Callback<ModelApiResponse> cb @retrofit.http.Path("petId") Long petId, @retrofit.http.Part("additionalMetadata") String additionalMetadata, @retrofit.http.Part("file") TypedFile file, Callback<ModelApiResponse> cb
); );
} }

View File

@ -24,7 +24,7 @@ public interface StoreApi {
@DELETE("/store/order/{orderId}") @DELETE("/store/order/{orderId}")
Void deleteOrder( Void deleteOrder(
@Path("orderId") String orderId @retrofit.http.Path("orderId") String orderId
); );
/** /**
@ -37,7 +37,7 @@ public interface StoreApi {
@DELETE("/store/order/{orderId}") @DELETE("/store/order/{orderId}")
void deleteOrder( void deleteOrder(
@Path("orderId") String orderId, Callback<Void> cb @retrofit.http.Path("orderId") String orderId, Callback<Void> cb
); );
/** /**
* Returns pet inventories by status * Returns pet inventories by status
@ -71,7 +71,7 @@ public interface StoreApi {
@GET("/store/order/{orderId}") @GET("/store/order/{orderId}")
Order getOrderById( Order getOrderById(
@Path("orderId") Long orderId @retrofit.http.Path("orderId") Long orderId
); );
/** /**
@ -84,7 +84,7 @@ public interface StoreApi {
@GET("/store/order/{orderId}") @GET("/store/order/{orderId}")
void getOrderById( void getOrderById(
@Path("orderId") Long orderId, Callback<Order> cb @retrofit.http.Path("orderId") Long orderId, Callback<Order> cb
); );
/** /**
* Place an order for a pet * Place an order for a pet
@ -96,7 +96,7 @@ public interface StoreApi {
@POST("/store/order") @POST("/store/order")
Order placeOrder( Order placeOrder(
@Body Order body @retrofit.http.Body Order body
); );
/** /**
@ -109,6 +109,6 @@ public interface StoreApi {
@POST("/store/order") @POST("/store/order")
void placeOrder( void placeOrder(
@Body Order body, Callback<Order> cb @retrofit.http.Body Order body, Callback<Order> cb
); );
} }

View File

@ -24,7 +24,7 @@ public interface UserApi {
@POST("/user") @POST("/user")
Void createUser( Void createUser(
@Body User body @retrofit.http.Body User body
); );
/** /**
@ -37,7 +37,7 @@ public interface UserApi {
@POST("/user") @POST("/user")
void createUser( void createUser(
@Body User body, Callback<Void> cb @retrofit.http.Body User body, Callback<Void> cb
); );
/** /**
* Creates list of users with given input array * Creates list of users with given input array
@ -49,7 +49,7 @@ public interface UserApi {
@POST("/user/createWithArray") @POST("/user/createWithArray")
Void createUsersWithArrayInput( Void createUsersWithArrayInput(
@Body List<User> body @retrofit.http.Body List<User> body
); );
/** /**
@ -62,7 +62,7 @@ public interface UserApi {
@POST("/user/createWithArray") @POST("/user/createWithArray")
void createUsersWithArrayInput( void createUsersWithArrayInput(
@Body List<User> body, Callback<Void> cb @retrofit.http.Body List<User> body, Callback<Void> cb
); );
/** /**
* Creates list of users with given input array * Creates list of users with given input array
@ -74,7 +74,7 @@ public interface UserApi {
@POST("/user/createWithList") @POST("/user/createWithList")
Void createUsersWithListInput( Void createUsersWithListInput(
@Body List<User> body @retrofit.http.Body List<User> body
); );
/** /**
@ -87,7 +87,7 @@ public interface UserApi {
@POST("/user/createWithList") @POST("/user/createWithList")
void createUsersWithListInput( void createUsersWithListInput(
@Body List<User> body, Callback<Void> cb @retrofit.http.Body List<User> body, Callback<Void> cb
); );
/** /**
* Delete user * Delete user
@ -99,7 +99,7 @@ public interface UserApi {
@DELETE("/user/{username}") @DELETE("/user/{username}")
Void deleteUser( Void deleteUser(
@Path("username") String username @retrofit.http.Path("username") String username
); );
/** /**
@ -112,7 +112,7 @@ public interface UserApi {
@DELETE("/user/{username}") @DELETE("/user/{username}")
void deleteUser( void deleteUser(
@Path("username") String username, Callback<Void> cb @retrofit.http.Path("username") String username, Callback<Void> cb
); );
/** /**
* Get user by user name * Get user by user name
@ -124,7 +124,7 @@ public interface UserApi {
@GET("/user/{username}") @GET("/user/{username}")
User getUserByName( User getUserByName(
@Path("username") String username @retrofit.http.Path("username") String username
); );
/** /**
@ -137,7 +137,7 @@ public interface UserApi {
@GET("/user/{username}") @GET("/user/{username}")
void getUserByName( void getUserByName(
@Path("username") String username, Callback<User> cb @retrofit.http.Path("username") String username, Callback<User> cb
); );
/** /**
* Logs user into the system * Logs user into the system
@ -150,7 +150,7 @@ public interface UserApi {
@GET("/user/login") @GET("/user/login")
String loginUser( String loginUser(
@Query("username") String username, @Query("password") String password @retrofit.http.Query("username") String username, @retrofit.http.Query("password") String password
); );
/** /**
@ -164,7 +164,7 @@ public interface UserApi {
@GET("/user/login") @GET("/user/login")
void loginUser( void loginUser(
@Query("username") String username, @Query("password") String password, Callback<String> cb @retrofit.http.Query("username") String username, @retrofit.http.Query("password") String password, Callback<String> cb
); );
/** /**
* Logs out current logged in user session * Logs out current logged in user session
@ -199,7 +199,7 @@ public interface UserApi {
@PUT("/user/{username}") @PUT("/user/{username}")
Void updateUser( Void updateUser(
@Path("username") String username, @Body User body @retrofit.http.Path("username") String username, @retrofit.http.Body User body
); );
/** /**
@ -213,6 +213,6 @@ public interface UserApi {
@PUT("/user/{username}") @PUT("/user/{username}")
void updateUser( void updateUser(
@Path("username") String username, @Body User body, Callback<Void> cb @retrofit.http.Path("username") String username, @retrofit.http.Body User body, Callback<Void> cb
); );
} }

View File

@ -33,12 +33,11 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
* AdditionalPropertiesClass * AdditionalPropertiesClass
*/ */
public class AdditionalPropertiesClass { public class AdditionalPropertiesClass {
@SerializedName("map_property") @SerializedName("map_property")
private Map<String, String> mapProperty = new HashMap<String, String>(); private Map<String, String> mapProperty = new HashMap<String, String>();
@ -131,5 +130,6 @@ public class AdditionalPropertiesClass {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Animal * Animal
*/ */
public class Animal { public class Animal {
@SerializedName("className") @SerializedName("className")
private String className = null; private String className = null;
@ -118,5 +117,6 @@ public class Animal {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import io.swagger.client.model.Animal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* AnimalFarm * AnimalFarm
*/ */
public class AnimalFarm extends ArrayList<Animal> { public class AnimalFarm extends ArrayList<Animal> {
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
@ -72,5 +71,6 @@ public class AnimalFarm extends ArrayList<Animal> {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -33,12 +33,11 @@ import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* ArrayOfArrayOfNumberOnly * ArrayOfArrayOfNumberOnly
*/ */
public class ArrayOfArrayOfNumberOnly { public class ArrayOfArrayOfNumberOnly {
@SerializedName("ArrayArrayNumber") @SerializedName("ArrayArrayNumber")
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>(); private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
@ -103,5 +102,6 @@ public class ArrayOfArrayOfNumberOnly {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -33,12 +33,11 @@ import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* ArrayOfNumberOnly * ArrayOfNumberOnly
*/ */
public class ArrayOfNumberOnly { public class ArrayOfNumberOnly {
@SerializedName("ArrayNumber") @SerializedName("ArrayNumber")
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>(); private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
@ -103,5 +102,6 @@ public class ArrayOfNumberOnly {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -33,12 +33,11 @@ import io.swagger.client.model.ReadOnlyFirst;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* ArrayTest * ArrayTest
*/ */
public class ArrayTest { public class ArrayTest {
@SerializedName("array_of_string") @SerializedName("array_of_string")
private List<String> arrayOfString = new ArrayList<String>(); private List<String> arrayOfString = new ArrayList<String>();
@ -159,5 +158,6 @@ public class ArrayTest {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -31,12 +31,11 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import io.swagger.client.model.Animal; import io.swagger.client.model.Animal;
/** /**
* Cat * Cat
*/ */
public class Cat extends Animal { public class Cat extends Animal {
@SerializedName("declawed") @SerializedName("declawed")
private Boolean declawed = null; private Boolean declawed = null;
@ -97,5 +96,6 @@ public class Cat extends Animal {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Category * Category
*/ */
public class Category { public class Category {
@SerializedName("id") @SerializedName("id")
private Long id = null; private Long id = null;
@ -118,5 +117,6 @@ public class Category {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Client * Client
*/ */
public class Client { public class Client {
@SerializedName("client") @SerializedName("client")
private String client = null; private String client = null;
@ -95,5 +94,6 @@ public class Client {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -31,12 +31,11 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import io.swagger.client.model.Animal; import io.swagger.client.model.Animal;
/** /**
* Dog * Dog
*/ */
public class Dog extends Animal { public class Dog extends Animal {
@SerializedName("breed") @SerializedName("breed")
private String breed = null; private String breed = null;
@ -97,5 +96,6 @@ public class Dog extends Animal {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -32,12 +32,11 @@ import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* EnumArrays * EnumArrays
*/ */
public class EnumArrays { public class EnumArrays {
/** /**
* Gets or Sets justSymbol * Gets or Sets justSymbol
*/ */
@ -169,5 +168,6 @@ public class EnumArrays {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -29,7 +29,6 @@ import java.util.Objects;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;
/** /**
* Gets or Sets EnumClass * Gets or Sets EnumClass
*/ */

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* EnumTest * EnumTest
*/ */
public class EnumTest { public class EnumTest {
/** /**
* Gets or Sets enumString * Gets or Sets enumString
*/ */
@ -207,5 +206,6 @@ public class EnumTest {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -33,12 +33,11 @@ import java.math.BigDecimal;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
/** /**
* FormatTest * FormatTest
*/ */
public class FormatTest { public class FormatTest {
@SerializedName("integer") @SerializedName("integer")
private Integer integer = null; private Integer integer = null;
@ -384,5 +383,6 @@ public class FormatTest {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* HasOnlyReadOnly * HasOnlyReadOnly
*/ */
public class HasOnlyReadOnly { public class HasOnlyReadOnly {
@SerializedName("bar") @SerializedName("bar")
private String bar = null; private String bar = null;
@ -100,5 +99,6 @@ public class HasOnlyReadOnly {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -33,12 +33,11 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
* MapTest * MapTest
*/ */
public class MapTest { public class MapTest {
@SerializedName("map_map_of_string") @SerializedName("map_map_of_string")
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>(); private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();
@ -153,5 +152,6 @@ public class MapTest {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -35,12 +35,11 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import org.joda.time.DateTime; import org.joda.time.DateTime;
/** /**
* MixedPropertiesAndAdditionalPropertiesClass * MixedPropertiesAndAdditionalPropertiesClass
*/ */
public class MixedPropertiesAndAdditionalPropertiesClass { public class MixedPropertiesAndAdditionalPropertiesClass {
@SerializedName("uuid") @SerializedName("uuid")
private String uuid = null; private String uuid = null;
@ -151,5 +150,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,13 +30,12 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Model for testing model name starting with number * Model for testing model name starting with number
*/ */
@ApiModel(description = "Model for testing model name starting with number") @ApiModel(description = "Model for testing model name starting with number")
public class Model200Response { public class Model200Response {
@SerializedName("name") @SerializedName("name")
private Integer name = null; private Integer name = null;
@ -119,5 +118,6 @@ public class Model200Response {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* ModelApiResponse * ModelApiResponse
*/ */
public class ModelApiResponse { public class ModelApiResponse {
@SerializedName("code") @SerializedName("code")
private Integer code = null; private Integer code = null;
@ -141,5 +140,6 @@ public class ModelApiResponse {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,13 +30,12 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Model for testing reserved words * Model for testing reserved words
*/ */
@ApiModel(description = "Model for testing reserved words") @ApiModel(description = "Model for testing reserved words")
public class ModelReturn { public class ModelReturn {
@SerializedName("return") @SerializedName("return")
private Integer _return = null; private Integer _return = null;
@ -96,5 +95,6 @@ public class ModelReturn {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,13 +30,12 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Model for testing model name same as property name * Model for testing model name same as property name
*/ */
@ApiModel(description = "Model for testing model name same as property name") @ApiModel(description = "Model for testing model name same as property name")
public class Name { public class Name {
@SerializedName("name") @SerializedName("name")
private Integer name = null; private Integer name = null;
@ -147,5 +146,6 @@ public class Name {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -31,12 +31,11 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
/** /**
* NumberOnly * NumberOnly
*/ */
public class NumberOnly { public class NumberOnly {
@SerializedName("JustNumber") @SerializedName("JustNumber")
private BigDecimal justNumber = null; private BigDecimal justNumber = null;
@ -96,5 +95,6 @@ public class NumberOnly {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -31,12 +31,11 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.joda.time.DateTime; import org.joda.time.DateTime;
/** /**
* Order * Order
*/ */
public class Order { public class Order {
@SerializedName("id") @SerializedName("id")
private Long id = null; private Long id = null;
@ -236,5 +235,6 @@ public class Order {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -34,12 +34,11 @@ import io.swagger.client.model.Tag;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* Pet * Pet
*/ */
public class Pet { public class Pet {
@SerializedName("id") @SerializedName("id")
private Long id = null; private Long id = null;
@ -249,5 +248,6 @@ public class Pet {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* ReadOnlyFirst * ReadOnlyFirst
*/ */
public class ReadOnlyFirst { public class ReadOnlyFirst {
@SerializedName("bar") @SerializedName("bar")
private String bar = null; private String bar = null;
@ -109,5 +108,6 @@ public class ReadOnlyFirst {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* SpecialModelName * SpecialModelName
*/ */
public class SpecialModelName { public class SpecialModelName {
@SerializedName("$special[property.name]") @SerializedName("$special[property.name]")
private Long specialPropertyName = null; private Long specialPropertyName = null;
@ -95,5 +94,6 @@ public class SpecialModelName {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Tag * Tag
*/ */
public class Tag { public class Tag {
@SerializedName("id") @SerializedName("id")
private Long id = null; private Long id = null;
@ -118,5 +117,6 @@ public class Tag {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* User * User
*/ */
public class User { public class User {
@SerializedName("id") @SerializedName("id")
private Long id = null; private Long id = null;
@ -256,5 +255,6 @@ public class User {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -54,7 +54,7 @@ No authorization required
<a name="testEndpointParameters"></a> <a name="testEndpointParameters"></a>
# **testEndpointParameters** # **testEndpointParameters**
> Void testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password) > Void testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback)
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -90,8 +90,9 @@ byte[] binary = B; // byte[] | None
LocalDate date = new LocalDate(); // LocalDate | None LocalDate date = new LocalDate(); // LocalDate | None
DateTime dateTime = new DateTime(); // DateTime | None DateTime dateTime = new DateTime(); // DateTime | None
String password = "password_example"; // String | None String password = "password_example"; // String | None
String paramCallback = "paramCallback_example"; // String | None
try { try {
Void result = apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password); Void result = apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEndpointParameters"); System.err.println("Exception when calling FakeApi#testEndpointParameters");
@ -116,6 +117,7 @@ Name | Type | Description | Notes
**date** | **LocalDate**| None | [optional] **date** | **LocalDate**| None | [optional]
**dateTime** | **DateTime**| None | [optional] **dateTime** | **DateTime**| None | [optional]
**password** | **String**| None | [optional] **password** | **String**| None | [optional]
**paramCallback** | **String**| None | [optional]
### Return type ### Return type

View File

@ -1,90 +1,90 @@
@if "%DEBUG%" == "" @echo off @if "%DEBUG%" == "" @echo off
@rem ########################################################################## @rem ##########################################################################
@rem @rem
@rem Gradle startup script for Windows @rem Gradle startup script for Windows
@rem @rem
@rem ########################################################################## @rem ##########################################################################
@rem Set local scope for the variables with windows NT shell @rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal if "%OS%"=="Windows_NT" setlocal
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS= set DEFAULT_JVM_OPTS=
set DIRNAME=%~dp0 set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=. if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0 set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME% set APP_HOME=%DIRNAME%
@rem Find java.exe @rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1 %JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init if "%ERRORLEVEL%" == "0" goto init
echo. echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo. echo.
echo Please set the JAVA_HOME variable in your environment to match the echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation. echo location of your Java installation.
goto fail goto fail
:findJavaFromJavaHome :findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=% set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init if exist "%JAVA_EXE%" goto init
echo. echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo. echo.
echo Please set the JAVA_HOME variable in your environment to match the echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation. echo location of your Java installation.
goto fail goto fail
:init :init
@rem Get command-line arguments, handling Windows variants @rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args if "%@eval[2+2]" == "4" goto 4NT_args
:win9xME_args :win9xME_args
@rem Slurp the command line arguments. @rem Slurp the command line arguments.
set CMD_LINE_ARGS= set CMD_LINE_ARGS=
set _SKIP=2 set _SKIP=2
:win9xME_args_slurp :win9xME_args_slurp
if "x%~1" == "x" goto execute if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%* set CMD_LINE_ARGS=%*
goto execute goto execute
:4NT_args :4NT_args
@rem Get arguments from the 4NT Shell from JP Software @rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$ set CMD_LINE_ARGS=%$
:execute :execute
@rem Setup the command line @rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle @rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end :end
@rem End local scope for the variables with windows NT shell @rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd if "%ERRORLEVEL%"=="0" goto mainEnd
:fail :fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code! rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1 exit /b 1
:mainEnd :mainEnd
if "%OS%"=="Windows_NT" endlocal if "%OS%"=="Windows_NT" endlocal
:omega :omega

View File

@ -10,8 +10,8 @@ import okhttp3.RequestBody;
import io.swagger.client.model.Client; import io.swagger.client.model.Client;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
import java.math.BigDecimal;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
@ -28,7 +28,7 @@ public interface FakeApi {
@PATCH("fake") @PATCH("fake")
Call<Client> testClientModel( Call<Client> testClientModel(
@Body Client body @retrofit2.http.Body Client body
); );
/** /**
@ -47,13 +47,14 @@ public interface FakeApi {
* @param date None (optional) * @param date None (optional)
* @param dateTime None (optional) * @param dateTime None (optional)
* @param password None (optional) * @param password None (optional)
* @param paramCallback None (optional)
* @return Call&lt;Void&gt; * @return Call&lt;Void&gt;
*/ */
@FormUrlEncoded @retrofit2.http.FormUrlEncoded
@POST("fake") @POST("fake")
Call<Void> testEndpointParameters( Call<Void> testEndpointParameters(
@Field("number") BigDecimal number, @Field("double") Double _double, @Field("pattern_without_delimiter") String patternWithoutDelimiter, @Field("byte") byte[] _byte, @Field("integer") Integer integer, @Field("int32") Integer int32, @Field("int64") Long int64, @Field("float") Float _float, @Field("string") String string, @Field("binary") byte[] binary, @Field("date") LocalDate date, @Field("dateTime") DateTime dateTime, @Field("password") String password @retrofit2.http.Field("number") BigDecimal number, @retrofit2.http.Field("double") Double _double, @retrofit2.http.Field("pattern_without_delimiter") String patternWithoutDelimiter, @retrofit2.http.Field("byte") byte[] _byte, @retrofit2.http.Field("integer") Integer integer, @retrofit2.http.Field("int32") Integer int32, @retrofit2.http.Field("int64") Long int64, @retrofit2.http.Field("float") Float _float, @retrofit2.http.Field("string") String string, @retrofit2.http.Field("binary") byte[] binary, @retrofit2.http.Field("date") LocalDate date, @retrofit2.http.Field("dateTime") DateTime dateTime, @retrofit2.http.Field("password") String password, @retrofit2.http.Field("callback") String paramCallback
); );
/** /**
@ -70,10 +71,10 @@ public interface FakeApi {
* @return Call&lt;Void&gt; * @return Call&lt;Void&gt;
*/ */
@FormUrlEncoded @retrofit2.http.FormUrlEncoded
@GET("fake") @GET("fake")
Call<Void> testEnumParameters( Call<Void> testEnumParameters(
@Field("enum_form_string_array") List<String> enumFormStringArray, @Field("enum_form_string") String enumFormString, @Header("enum_header_string_array") List<String> enumHeaderStringArray, @Header("enum_header_string") String enumHeaderString, @Query("enum_query_string_array") CSVParams enumQueryStringArray, @Query("enum_query_string") String enumQueryString, @Query("enum_query_integer") BigDecimal enumQueryInteger, @Field("enum_query_double") Double enumQueryDouble @retrofit2.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit2.http.Field("enum_form_string") String enumFormString, @retrofit2.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit2.http.Header("enum_header_string") String enumHeaderString, @retrofit2.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit2.http.Query("enum_query_string") String enumQueryString, @retrofit2.http.Query("enum_query_integer") BigDecimal enumQueryInteger, @retrofit2.http.Field("enum_query_double") Double enumQueryDouble
); );
} }

View File

@ -9,8 +9,8 @@ import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import io.swagger.client.model.Pet; import io.swagger.client.model.Pet;
import io.swagger.client.model.ModelApiResponse;
import java.io.File; import java.io.File;
import io.swagger.client.model.ModelApiResponse;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
@ -27,7 +27,7 @@ public interface PetApi {
@POST("pet") @POST("pet")
Call<Void> addPet( Call<Void> addPet(
@Body Pet body @retrofit2.http.Body Pet body
); );
/** /**
@ -40,7 +40,7 @@ public interface PetApi {
@DELETE("pet/{petId}") @DELETE("pet/{petId}")
Call<Void> deletePet( Call<Void> deletePet(
@Path("petId") Long petId, @Header("api_key") String apiKey @retrofit2.http.Path("petId") Long petId, @retrofit2.http.Header("api_key") String apiKey
); );
/** /**
@ -52,7 +52,7 @@ public interface PetApi {
@GET("pet/findByStatus") @GET("pet/findByStatus")
Call<List<Pet>> findPetsByStatus( Call<List<Pet>> findPetsByStatus(
@Query("status") CSVParams status @retrofit2.http.Query("status") CSVParams status
); );
/** /**
@ -64,7 +64,7 @@ public interface PetApi {
@GET("pet/findByTags") @GET("pet/findByTags")
Call<List<Pet>> findPetsByTags( Call<List<Pet>> findPetsByTags(
@Query("tags") CSVParams tags @retrofit2.http.Query("tags") CSVParams tags
); );
/** /**
@ -76,7 +76,7 @@ public interface PetApi {
@GET("pet/{petId}") @GET("pet/{petId}")
Call<Pet> getPetById( Call<Pet> getPetById(
@Path("petId") Long petId @retrofit2.http.Path("petId") Long petId
); );
/** /**
@ -88,7 +88,7 @@ public interface PetApi {
@PUT("pet") @PUT("pet")
Call<Void> updatePet( Call<Void> updatePet(
@Body Pet body @retrofit2.http.Body Pet body
); );
/** /**
@ -100,10 +100,10 @@ public interface PetApi {
* @return Call&lt;Void&gt; * @return Call&lt;Void&gt;
*/ */
@FormUrlEncoded @retrofit2.http.FormUrlEncoded
@POST("pet/{petId}") @POST("pet/{petId}")
Call<Void> updatePetWithForm( Call<Void> updatePetWithForm(
@Path("petId") Long petId, @Field("name") String name, @Field("status") String status @retrofit2.http.Path("petId") Long petId, @retrofit2.http.Field("name") String name, @retrofit2.http.Field("status") String status
); );
/** /**
@ -115,10 +115,10 @@ public interface PetApi {
* @return Call&lt;ModelApiResponse&gt; * @return Call&lt;ModelApiResponse&gt;
*/ */
@Multipart @retrofit2.http.Multipart
@POST("pet/{petId}/uploadImage") @POST("pet/{petId}/uploadImage")
Call<ModelApiResponse> uploadFile( Call<ModelApiResponse> uploadFile(
@Path("petId") Long petId, @Part("additionalMetadata") String additionalMetadata, @Part("file\"; filename=\"file") RequestBody file @retrofit2.http.Path("petId") Long petId, @retrofit2.http.Part("additionalMetadata") String additionalMetadata, @retrofit2.http.Part("file\"; filename=\"file") RequestBody file
); );
} }

View File

@ -25,7 +25,7 @@ public interface StoreApi {
@DELETE("store/order/{orderId}") @DELETE("store/order/{orderId}")
Call<Void> deleteOrder( Call<Void> deleteOrder(
@Path("orderId") String orderId @retrofit2.http.Path("orderId") String orderId
); );
/** /**
@ -47,7 +47,7 @@ public interface StoreApi {
@GET("store/order/{orderId}") @GET("store/order/{orderId}")
Call<Order> getOrderById( Call<Order> getOrderById(
@Path("orderId") Long orderId @retrofit2.http.Path("orderId") Long orderId
); );
/** /**
@ -59,7 +59,7 @@ public interface StoreApi {
@POST("store/order") @POST("store/order")
Call<Order> placeOrder( Call<Order> placeOrder(
@Body Order body @retrofit2.http.Body Order body
); );
} }

View File

@ -25,7 +25,7 @@ public interface UserApi {
@POST("user") @POST("user")
Call<Void> createUser( Call<Void> createUser(
@Body User body @retrofit2.http.Body User body
); );
/** /**
@ -37,7 +37,7 @@ public interface UserApi {
@POST("user/createWithArray") @POST("user/createWithArray")
Call<Void> createUsersWithArrayInput( Call<Void> createUsersWithArrayInput(
@Body List<User> body @retrofit2.http.Body List<User> body
); );
/** /**
@ -49,7 +49,7 @@ public interface UserApi {
@POST("user/createWithList") @POST("user/createWithList")
Call<Void> createUsersWithListInput( Call<Void> createUsersWithListInput(
@Body List<User> body @retrofit2.http.Body List<User> body
); );
/** /**
@ -61,7 +61,7 @@ public interface UserApi {
@DELETE("user/{username}") @DELETE("user/{username}")
Call<Void> deleteUser( Call<Void> deleteUser(
@Path("username") String username @retrofit2.http.Path("username") String username
); );
/** /**
@ -73,7 +73,7 @@ public interface UserApi {
@GET("user/{username}") @GET("user/{username}")
Call<User> getUserByName( Call<User> getUserByName(
@Path("username") String username @retrofit2.http.Path("username") String username
); );
/** /**
@ -86,7 +86,7 @@ public interface UserApi {
@GET("user/login") @GET("user/login")
Call<String> loginUser( Call<String> loginUser(
@Query("username") String username, @Query("password") String password @retrofit2.http.Query("username") String username, @retrofit2.http.Query("password") String password
); );
/** /**
@ -109,7 +109,7 @@ public interface UserApi {
@PUT("user/{username}") @PUT("user/{username}")
Call<Void> updateUser( Call<Void> updateUser(
@Path("username") String username, @Body User body @retrofit2.http.Path("username") String username, @retrofit2.http.Body User body
); );
} }

View File

@ -33,12 +33,11 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
* AdditionalPropertiesClass * AdditionalPropertiesClass
*/ */
public class AdditionalPropertiesClass { public class AdditionalPropertiesClass {
@SerializedName("map_property") @SerializedName("map_property")
private Map<String, String> mapProperty = new HashMap<String, String>(); private Map<String, String> mapProperty = new HashMap<String, String>();
@ -131,5 +130,6 @@ public class AdditionalPropertiesClass {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Animal * Animal
*/ */
public class Animal { public class Animal {
@SerializedName("className") @SerializedName("className")
private String className = null; private String className = null;
@ -118,5 +117,6 @@ public class Animal {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import io.swagger.client.model.Animal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* AnimalFarm * AnimalFarm
*/ */
public class AnimalFarm extends ArrayList<Animal> { public class AnimalFarm extends ArrayList<Animal> {
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
@ -72,5 +71,6 @@ public class AnimalFarm extends ArrayList<Animal> {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -33,12 +33,11 @@ import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* ArrayOfArrayOfNumberOnly * ArrayOfArrayOfNumberOnly
*/ */
public class ArrayOfArrayOfNumberOnly { public class ArrayOfArrayOfNumberOnly {
@SerializedName("ArrayArrayNumber") @SerializedName("ArrayArrayNumber")
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>(); private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
@ -103,5 +102,6 @@ public class ArrayOfArrayOfNumberOnly {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -33,12 +33,11 @@ import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* ArrayOfNumberOnly * ArrayOfNumberOnly
*/ */
public class ArrayOfNumberOnly { public class ArrayOfNumberOnly {
@SerializedName("ArrayNumber") @SerializedName("ArrayNumber")
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>(); private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
@ -103,5 +102,6 @@ public class ArrayOfNumberOnly {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -33,12 +33,11 @@ import io.swagger.client.model.ReadOnlyFirst;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* ArrayTest * ArrayTest
*/ */
public class ArrayTest { public class ArrayTest {
@SerializedName("array_of_string") @SerializedName("array_of_string")
private List<String> arrayOfString = new ArrayList<String>(); private List<String> arrayOfString = new ArrayList<String>();
@ -159,5 +158,6 @@ public class ArrayTest {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -31,12 +31,11 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import io.swagger.client.model.Animal; import io.swagger.client.model.Animal;
/** /**
* Cat * Cat
*/ */
public class Cat extends Animal { public class Cat extends Animal {
@SerializedName("declawed") @SerializedName("declawed")
private Boolean declawed = null; private Boolean declawed = null;
@ -97,5 +96,6 @@ public class Cat extends Animal {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Category * Category
*/ */
public class Category { public class Category {
@SerializedName("id") @SerializedName("id")
private Long id = null; private Long id = null;
@ -118,5 +117,6 @@ public class Category {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Client * Client
*/ */
public class Client { public class Client {
@SerializedName("client") @SerializedName("client")
private String client = null; private String client = null;
@ -95,5 +94,6 @@ public class Client {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -31,12 +31,11 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import io.swagger.client.model.Animal; import io.swagger.client.model.Animal;
/** /**
* Dog * Dog
*/ */
public class Dog extends Animal { public class Dog extends Animal {
@SerializedName("breed") @SerializedName("breed")
private String breed = null; private String breed = null;
@ -97,5 +96,6 @@ public class Dog extends Animal {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -32,12 +32,11 @@ import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* EnumArrays * EnumArrays
*/ */
public class EnumArrays { public class EnumArrays {
/** /**
* Gets or Sets justSymbol * Gets or Sets justSymbol
*/ */
@ -169,5 +168,6 @@ public class EnumArrays {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -29,7 +29,6 @@ import java.util.Objects;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;
/** /**
* Gets or Sets EnumClass * Gets or Sets EnumClass
*/ */

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* EnumTest * EnumTest
*/ */
public class EnumTest { public class EnumTest {
/** /**
* Gets or Sets enumString * Gets or Sets enumString
*/ */
@ -207,5 +206,6 @@ public class EnumTest {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -33,12 +33,11 @@ import java.math.BigDecimal;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
/** /**
* FormatTest * FormatTest
*/ */
public class FormatTest { public class FormatTest {
@SerializedName("integer") @SerializedName("integer")
private Integer integer = null; private Integer integer = null;
@ -384,5 +383,6 @@ public class FormatTest {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* HasOnlyReadOnly * HasOnlyReadOnly
*/ */
public class HasOnlyReadOnly { public class HasOnlyReadOnly {
@SerializedName("bar") @SerializedName("bar")
private String bar = null; private String bar = null;
@ -100,5 +99,6 @@ public class HasOnlyReadOnly {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -33,12 +33,11 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
* MapTest * MapTest
*/ */
public class MapTest { public class MapTest {
@SerializedName("map_map_of_string") @SerializedName("map_map_of_string")
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>(); private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();
@ -153,5 +152,6 @@ public class MapTest {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -35,12 +35,11 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import org.joda.time.DateTime; import org.joda.time.DateTime;
/** /**
* MixedPropertiesAndAdditionalPropertiesClass * MixedPropertiesAndAdditionalPropertiesClass
*/ */
public class MixedPropertiesAndAdditionalPropertiesClass { public class MixedPropertiesAndAdditionalPropertiesClass {
@SerializedName("uuid") @SerializedName("uuid")
private String uuid = null; private String uuid = null;
@ -151,5 +150,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,13 +30,12 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Model for testing model name starting with number * Model for testing model name starting with number
*/ */
@ApiModel(description = "Model for testing model name starting with number") @ApiModel(description = "Model for testing model name starting with number")
public class Model200Response { public class Model200Response {
@SerializedName("name") @SerializedName("name")
private Integer name = null; private Integer name = null;
@ -119,5 +118,6 @@ public class Model200Response {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* ModelApiResponse * ModelApiResponse
*/ */
public class ModelApiResponse { public class ModelApiResponse {
@SerializedName("code") @SerializedName("code")
private Integer code = null; private Integer code = null;
@ -141,5 +140,6 @@ public class ModelApiResponse {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,13 +30,12 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Model for testing reserved words * Model for testing reserved words
*/ */
@ApiModel(description = "Model for testing reserved words") @ApiModel(description = "Model for testing reserved words")
public class ModelReturn { public class ModelReturn {
@SerializedName("return") @SerializedName("return")
private Integer _return = null; private Integer _return = null;
@ -96,5 +95,6 @@ public class ModelReturn {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,13 +30,12 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Model for testing model name same as property name * Model for testing model name same as property name
*/ */
@ApiModel(description = "Model for testing model name same as property name") @ApiModel(description = "Model for testing model name same as property name")
public class Name { public class Name {
@SerializedName("name") @SerializedName("name")
private Integer name = null; private Integer name = null;
@ -147,5 +146,6 @@ public class Name {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -31,12 +31,11 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal; import java.math.BigDecimal;
/** /**
* NumberOnly * NumberOnly
*/ */
public class NumberOnly { public class NumberOnly {
@SerializedName("JustNumber") @SerializedName("JustNumber")
private BigDecimal justNumber = null; private BigDecimal justNumber = null;
@ -96,5 +95,6 @@ public class NumberOnly {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -31,12 +31,11 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import org.joda.time.DateTime; import org.joda.time.DateTime;
/** /**
* Order * Order
*/ */
public class Order { public class Order {
@SerializedName("id") @SerializedName("id")
private Long id = null; private Long id = null;
@ -236,5 +235,6 @@ public class Order {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -34,12 +34,11 @@ import io.swagger.client.model.Tag;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* Pet * Pet
*/ */
public class Pet { public class Pet {
@SerializedName("id") @SerializedName("id")
private Long id = null; private Long id = null;
@ -249,5 +248,6 @@ public class Pet {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* ReadOnlyFirst * ReadOnlyFirst
*/ */
public class ReadOnlyFirst { public class ReadOnlyFirst {
@SerializedName("bar") @SerializedName("bar")
private String bar = null; private String bar = null;
@ -109,5 +108,6 @@ public class ReadOnlyFirst {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* SpecialModelName * SpecialModelName
*/ */
public class SpecialModelName { public class SpecialModelName {
@SerializedName("$special[property.name]") @SerializedName("$special[property.name]")
private Long specialPropertyName = null; private Long specialPropertyName = null;
@ -95,5 +94,6 @@ public class SpecialModelName {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Tag * Tag
*/ */
public class Tag { public class Tag {
@SerializedName("id") @SerializedName("id")
private Long id = null; private Long id = null;
@ -118,5 +117,6 @@ public class Tag {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* User * User
*/ */
public class User { public class User {
@SerializedName("id") @SerializedName("id")
private Long id = null; private Long id = null;
@ -256,5 +255,6 @@ public class User {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -54,7 +54,7 @@ No authorization required
<a name="testEndpointParameters"></a> <a name="testEndpointParameters"></a>
# **testEndpointParameters** # **testEndpointParameters**
> Void testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password) > Void testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback)
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -90,8 +90,9 @@ byte[] binary = B; // byte[] | None
LocalDate date = new LocalDate(); // LocalDate | None LocalDate date = new LocalDate(); // LocalDate | None
DateTime dateTime = new DateTime(); // DateTime | None DateTime dateTime = new DateTime(); // DateTime | None
String password = "password_example"; // String | None String password = "password_example"; // String | None
String paramCallback = "paramCallback_example"; // String | None
try { try {
Void result = apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password); Void result = apiInstance.testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
System.out.println(result); System.out.println(result);
} catch (ApiException e) { } catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEndpointParameters"); System.err.println("Exception when calling FakeApi#testEndpointParameters");
@ -116,6 +117,7 @@ Name | Type | Description | Notes
**date** | **LocalDate**| None | [optional] **date** | **LocalDate**| None | [optional]
**dateTime** | **DateTime**| None | [optional] **dateTime** | **DateTime**| None | [optional]
**password** | **String**| None | [optional] **password** | **String**| None | [optional]
**paramCallback** | **String**| None | [optional]
### Return type ### Return type

View File

@ -1,90 +1,90 @@
@if "%DEBUG%" == "" @echo off @if "%DEBUG%" == "" @echo off
@rem ########################################################################## @rem ##########################################################################
@rem @rem
@rem Gradle startup script for Windows @rem Gradle startup script for Windows
@rem @rem
@rem ########################################################################## @rem ##########################################################################
@rem Set local scope for the variables with windows NT shell @rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal if "%OS%"=="Windows_NT" setlocal
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS= set DEFAULT_JVM_OPTS=
set DIRNAME=%~dp0 set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=. if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0 set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME% set APP_HOME=%DIRNAME%
@rem Find java.exe @rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1 %JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init if "%ERRORLEVEL%" == "0" goto init
echo. echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo. echo.
echo Please set the JAVA_HOME variable in your environment to match the echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation. echo location of your Java installation.
goto fail goto fail
:findJavaFromJavaHome :findJavaFromJavaHome
set JAVA_HOME=%JAVA_HOME:"=% set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto init if exist "%JAVA_EXE%" goto init
echo. echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo. echo.
echo Please set the JAVA_HOME variable in your environment to match the echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation. echo location of your Java installation.
goto fail goto fail
:init :init
@rem Get command-line arguments, handling Windows variants @rem Get command-line arguments, handling Windows variants
if not "%OS%" == "Windows_NT" goto win9xME_args if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args if "%@eval[2+2]" == "4" goto 4NT_args
:win9xME_args :win9xME_args
@rem Slurp the command line arguments. @rem Slurp the command line arguments.
set CMD_LINE_ARGS= set CMD_LINE_ARGS=
set _SKIP=2 set _SKIP=2
:win9xME_args_slurp :win9xME_args_slurp
if "x%~1" == "x" goto execute if "x%~1" == "x" goto execute
set CMD_LINE_ARGS=%* set CMD_LINE_ARGS=%*
goto execute goto execute
:4NT_args :4NT_args
@rem Get arguments from the 4NT Shell from JP Software @rem Get arguments from the 4NT Shell from JP Software
set CMD_LINE_ARGS=%$ set CMD_LINE_ARGS=%$
:execute :execute
@rem Setup the command line @rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle @rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
:end :end
@rem End local scope for the variables with windows NT shell @rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd if "%ERRORLEVEL%"=="0" goto mainEnd
:fail :fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code! rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1 exit /b 1
:mainEnd :mainEnd
if "%OS%"=="Windows_NT" endlocal if "%OS%"=="Windows_NT" endlocal
:omega :omega

View File

@ -10,8 +10,8 @@ import okhttp3.RequestBody;
import io.swagger.client.model.Client; import io.swagger.client.model.Client;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
import java.math.BigDecimal;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
@ -28,7 +28,7 @@ public interface FakeApi {
@PATCH("fake") @PATCH("fake")
Observable<Client> testClientModel( Observable<Client> testClientModel(
@Body Client body @retrofit2.http.Body Client body
); );
/** /**
@ -47,13 +47,14 @@ public interface FakeApi {
* @param date None (optional) * @param date None (optional)
* @param dateTime None (optional) * @param dateTime None (optional)
* @param password None (optional) * @param password None (optional)
* @param paramCallback None (optional)
* @return Call&lt;Void&gt; * @return Call&lt;Void&gt;
*/ */
@FormUrlEncoded @retrofit2.http.FormUrlEncoded
@POST("fake") @POST("fake")
Observable<Void> testEndpointParameters( Observable<Void> testEndpointParameters(
@Field("number") BigDecimal number, @Field("double") Double _double, @Field("pattern_without_delimiter") String patternWithoutDelimiter, @Field("byte") byte[] _byte, @Field("integer") Integer integer, @Field("int32") Integer int32, @Field("int64") Long int64, @Field("float") Float _float, @Field("string") String string, @Field("binary") byte[] binary, @Field("date") LocalDate date, @Field("dateTime") DateTime dateTime, @Field("password") String password @retrofit2.http.Field("number") BigDecimal number, @retrofit2.http.Field("double") Double _double, @retrofit2.http.Field("pattern_without_delimiter") String patternWithoutDelimiter, @retrofit2.http.Field("byte") byte[] _byte, @retrofit2.http.Field("integer") Integer integer, @retrofit2.http.Field("int32") Integer int32, @retrofit2.http.Field("int64") Long int64, @retrofit2.http.Field("float") Float _float, @retrofit2.http.Field("string") String string, @retrofit2.http.Field("binary") byte[] binary, @retrofit2.http.Field("date") LocalDate date, @retrofit2.http.Field("dateTime") DateTime dateTime, @retrofit2.http.Field("password") String password, @retrofit2.http.Field("callback") String paramCallback
); );
/** /**
@ -70,10 +71,10 @@ public interface FakeApi {
* @return Call&lt;Void&gt; * @return Call&lt;Void&gt;
*/ */
@FormUrlEncoded @retrofit2.http.FormUrlEncoded
@GET("fake") @GET("fake")
Observable<Void> testEnumParameters( Observable<Void> testEnumParameters(
@Field("enum_form_string_array") List<String> enumFormStringArray, @Field("enum_form_string") String enumFormString, @Header("enum_header_string_array") List<String> enumHeaderStringArray, @Header("enum_header_string") String enumHeaderString, @Query("enum_query_string_array") CSVParams enumQueryStringArray, @Query("enum_query_string") String enumQueryString, @Query("enum_query_integer") BigDecimal enumQueryInteger, @Field("enum_query_double") Double enumQueryDouble @retrofit2.http.Field("enum_form_string_array") List<String> enumFormStringArray, @retrofit2.http.Field("enum_form_string") String enumFormString, @retrofit2.http.Header("enum_header_string_array") List<String> enumHeaderStringArray, @retrofit2.http.Header("enum_header_string") String enumHeaderString, @retrofit2.http.Query("enum_query_string_array") CSVParams enumQueryStringArray, @retrofit2.http.Query("enum_query_string") String enumQueryString, @retrofit2.http.Query("enum_query_integer") BigDecimal enumQueryInteger, @retrofit2.http.Field("enum_query_double") Double enumQueryDouble
); );
} }

View File

@ -9,8 +9,8 @@ import retrofit2.http.*;
import okhttp3.RequestBody; import okhttp3.RequestBody;
import io.swagger.client.model.Pet; import io.swagger.client.model.Pet;
import io.swagger.client.model.ModelApiResponse;
import java.io.File; import java.io.File;
import io.swagger.client.model.ModelApiResponse;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
@ -27,7 +27,7 @@ public interface PetApi {
@POST("pet") @POST("pet")
Observable<Void> addPet( Observable<Void> addPet(
@Body Pet body @retrofit2.http.Body Pet body
); );
/** /**
@ -40,7 +40,7 @@ public interface PetApi {
@DELETE("pet/{petId}") @DELETE("pet/{petId}")
Observable<Void> deletePet( Observable<Void> deletePet(
@Path("petId") Long petId, @Header("api_key") String apiKey @retrofit2.http.Path("petId") Long petId, @retrofit2.http.Header("api_key") String apiKey
); );
/** /**
@ -52,7 +52,7 @@ public interface PetApi {
@GET("pet/findByStatus") @GET("pet/findByStatus")
Observable<List<Pet>> findPetsByStatus( Observable<List<Pet>> findPetsByStatus(
@Query("status") CSVParams status @retrofit2.http.Query("status") CSVParams status
); );
/** /**
@ -64,7 +64,7 @@ public interface PetApi {
@GET("pet/findByTags") @GET("pet/findByTags")
Observable<List<Pet>> findPetsByTags( Observable<List<Pet>> findPetsByTags(
@Query("tags") CSVParams tags @retrofit2.http.Query("tags") CSVParams tags
); );
/** /**
@ -76,7 +76,7 @@ public interface PetApi {
@GET("pet/{petId}") @GET("pet/{petId}")
Observable<Pet> getPetById( Observable<Pet> getPetById(
@Path("petId") Long petId @retrofit2.http.Path("petId") Long petId
); );
/** /**
@ -88,7 +88,7 @@ public interface PetApi {
@PUT("pet") @PUT("pet")
Observable<Void> updatePet( Observable<Void> updatePet(
@Body Pet body @retrofit2.http.Body Pet body
); );
/** /**
@ -100,10 +100,10 @@ public interface PetApi {
* @return Call&lt;Void&gt; * @return Call&lt;Void&gt;
*/ */
@FormUrlEncoded @retrofit2.http.FormUrlEncoded
@POST("pet/{petId}") @POST("pet/{petId}")
Observable<Void> updatePetWithForm( Observable<Void> updatePetWithForm(
@Path("petId") Long petId, @Field("name") String name, @Field("status") String status @retrofit2.http.Path("petId") Long petId, @retrofit2.http.Field("name") String name, @retrofit2.http.Field("status") String status
); );
/** /**
@ -115,10 +115,10 @@ public interface PetApi {
* @return Call&lt;ModelApiResponse&gt; * @return Call&lt;ModelApiResponse&gt;
*/ */
@Multipart @retrofit2.http.Multipart
@POST("pet/{petId}/uploadImage") @POST("pet/{petId}/uploadImage")
Observable<ModelApiResponse> uploadFile( Observable<ModelApiResponse> uploadFile(
@Path("petId") Long petId, @Part("additionalMetadata") String additionalMetadata, @Part("file\"; filename=\"file") RequestBody file @retrofit2.http.Path("petId") Long petId, @retrofit2.http.Part("additionalMetadata") String additionalMetadata, @retrofit2.http.Part("file\"; filename=\"file") RequestBody file
); );
} }

View File

@ -25,7 +25,7 @@ public interface StoreApi {
@DELETE("store/order/{orderId}") @DELETE("store/order/{orderId}")
Observable<Void> deleteOrder( Observable<Void> deleteOrder(
@Path("orderId") String orderId @retrofit2.http.Path("orderId") String orderId
); );
/** /**
@ -47,7 +47,7 @@ public interface StoreApi {
@GET("store/order/{orderId}") @GET("store/order/{orderId}")
Observable<Order> getOrderById( Observable<Order> getOrderById(
@Path("orderId") Long orderId @retrofit2.http.Path("orderId") Long orderId
); );
/** /**
@ -59,7 +59,7 @@ public interface StoreApi {
@POST("store/order") @POST("store/order")
Observable<Order> placeOrder( Observable<Order> placeOrder(
@Body Order body @retrofit2.http.Body Order body
); );
} }

View File

@ -25,7 +25,7 @@ public interface UserApi {
@POST("user") @POST("user")
Observable<Void> createUser( Observable<Void> createUser(
@Body User body @retrofit2.http.Body User body
); );
/** /**
@ -37,7 +37,7 @@ public interface UserApi {
@POST("user/createWithArray") @POST("user/createWithArray")
Observable<Void> createUsersWithArrayInput( Observable<Void> createUsersWithArrayInput(
@Body List<User> body @retrofit2.http.Body List<User> body
); );
/** /**
@ -49,7 +49,7 @@ public interface UserApi {
@POST("user/createWithList") @POST("user/createWithList")
Observable<Void> createUsersWithListInput( Observable<Void> createUsersWithListInput(
@Body List<User> body @retrofit2.http.Body List<User> body
); );
/** /**
@ -61,7 +61,7 @@ public interface UserApi {
@DELETE("user/{username}") @DELETE("user/{username}")
Observable<Void> deleteUser( Observable<Void> deleteUser(
@Path("username") String username @retrofit2.http.Path("username") String username
); );
/** /**
@ -73,7 +73,7 @@ public interface UserApi {
@GET("user/{username}") @GET("user/{username}")
Observable<User> getUserByName( Observable<User> getUserByName(
@Path("username") String username @retrofit2.http.Path("username") String username
); );
/** /**
@ -86,7 +86,7 @@ public interface UserApi {
@GET("user/login") @GET("user/login")
Observable<String> loginUser( Observable<String> loginUser(
@Query("username") String username, @Query("password") String password @retrofit2.http.Query("username") String username, @retrofit2.http.Query("password") String password
); );
/** /**
@ -109,7 +109,7 @@ public interface UserApi {
@PUT("user/{username}") @PUT("user/{username}")
Observable<Void> updateUser( Observable<Void> updateUser(
@Path("username") String username, @Body User body @retrofit2.http.Path("username") String username, @retrofit2.http.Body User body
); );
} }

View File

@ -33,12 +33,11 @@ import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
* AdditionalPropertiesClass * AdditionalPropertiesClass
*/ */
public class AdditionalPropertiesClass { public class AdditionalPropertiesClass {
@SerializedName("map_property") @SerializedName("map_property")
private Map<String, String> mapProperty = new HashMap<String, String>(); private Map<String, String> mapProperty = new HashMap<String, String>();
@ -131,5 +130,6 @@ public class AdditionalPropertiesClass {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Animal * Animal
*/ */
public class Animal { public class Animal {
@SerializedName("className") @SerializedName("className")
private String className = null; private String className = null;
@ -118,5 +117,6 @@ public class Animal {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import io.swagger.client.model.Animal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* AnimalFarm * AnimalFarm
*/ */
public class AnimalFarm extends ArrayList<Animal> { public class AnimalFarm extends ArrayList<Animal> {
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
@ -72,5 +71,6 @@ public class AnimalFarm extends ArrayList<Animal> {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -33,12 +33,11 @@ import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* ArrayOfArrayOfNumberOnly * ArrayOfArrayOfNumberOnly
*/ */
public class ArrayOfArrayOfNumberOnly { public class ArrayOfArrayOfNumberOnly {
@SerializedName("ArrayArrayNumber") @SerializedName("ArrayArrayNumber")
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>(); private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
@ -103,5 +102,6 @@ public class ArrayOfArrayOfNumberOnly {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -33,12 +33,11 @@ import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* ArrayOfNumberOnly * ArrayOfNumberOnly
*/ */
public class ArrayOfNumberOnly { public class ArrayOfNumberOnly {
@SerializedName("ArrayNumber") @SerializedName("ArrayNumber")
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>(); private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
@ -103,5 +102,6 @@ public class ArrayOfNumberOnly {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -33,12 +33,11 @@ import io.swagger.client.model.ReadOnlyFirst;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* ArrayTest * ArrayTest
*/ */
public class ArrayTest { public class ArrayTest {
@SerializedName("array_of_string") @SerializedName("array_of_string")
private List<String> arrayOfString = new ArrayList<String>(); private List<String> arrayOfString = new ArrayList<String>();
@ -159,5 +158,6 @@ public class ArrayTest {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -31,12 +31,11 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import io.swagger.client.model.Animal; import io.swagger.client.model.Animal;
/** /**
* Cat * Cat
*/ */
public class Cat extends Animal { public class Cat extends Animal {
@SerializedName("declawed") @SerializedName("declawed")
private Boolean declawed = null; private Boolean declawed = null;
@ -97,5 +96,6 @@ public class Cat extends Animal {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Category * Category
*/ */
public class Category { public class Category {
@SerializedName("id") @SerializedName("id")
private Long id = null; private Long id = null;
@ -118,5 +117,6 @@ public class Category {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* Client * Client
*/ */
public class Client { public class Client {
@SerializedName("client") @SerializedName("client")
private String client = null; private String client = null;
@ -95,5 +94,6 @@ public class Client {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -31,12 +31,11 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import io.swagger.client.model.Animal; import io.swagger.client.model.Animal;
/** /**
* Dog * Dog
*/ */
public class Dog extends Animal { public class Dog extends Animal {
@SerializedName("breed") @SerializedName("breed")
private String breed = null; private String breed = null;
@ -97,5 +96,6 @@ public class Dog extends Animal {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -32,12 +32,11 @@ import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
* EnumArrays * EnumArrays
*/ */
public class EnumArrays { public class EnumArrays {
/** /**
* Gets or Sets justSymbol * Gets or Sets justSymbol
*/ */
@ -169,5 +168,6 @@ public class EnumArrays {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -29,7 +29,6 @@ import java.util.Objects;
import com.google.gson.annotations.SerializedName; import com.google.gson.annotations.SerializedName;
/** /**
* Gets or Sets EnumClass * Gets or Sets EnumClass
*/ */

View File

@ -30,12 +30,11 @@ import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
/** /**
* EnumTest * EnumTest
*/ */
public class EnumTest { public class EnumTest {
/** /**
* Gets or Sets enumString * Gets or Sets enumString
*/ */
@ -207,5 +206,6 @@ public class EnumTest {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

View File

@ -33,12 +33,11 @@ import java.math.BigDecimal;
import org.joda.time.DateTime; import org.joda.time.DateTime;
import org.joda.time.LocalDate; import org.joda.time.LocalDate;
/** /**
* FormatTest * FormatTest
*/ */
public class FormatTest { public class FormatTest {
@SerializedName("integer") @SerializedName("integer")
private Integer integer = null; private Integer integer = null;
@ -384,5 +383,6 @@ public class FormatTest {
} }
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }

Some files were not shown because too many files have changed in this diff Show More