minor changes

removed gson version in pom and added a space between the parameters
This commit is contained in:
cbornet 2015-08-29 18:41:16 +02:00
parent 265de9654b
commit a207251b29
6 changed files with 14 additions and 18 deletions

View File

@ -24,7 +24,7 @@ public interface {{classname}} {
{{#isMultipart}}@Multipart{{/isMultipart}}{{^isMultipart}}@FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
@{{httpMethod}}("{{path}}")
{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}} {{nickname}}({{^allParams}});{{/allParams}}
{{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{#hasMore}},{{/hasMore}}{{^hasMore}}
{{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{#hasMore}}, {{/hasMore}}{{^hasMore}}
);{{/hasMore}}{{/allParams}}
/**
@ -38,7 +38,7 @@ public interface {{classname}} {
{{#isMultipart}}@Multipart{{/isMultipart}}{{^isMultipart}}@FormUrlEncoded{{/isMultipart}}{{/-first}}{{/formParams}}
@{{httpMethod}}("{{path}}")
void {{nickname}}(
{{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}},{{/allParams}} Callback<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> cb
{{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}, {{/allParams}}Callback<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Object{{/returnType}}> cb
);
{{/operation}}
}

View File

@ -121,7 +121,6 @@
<groupId>org.apache.oltu.oauth2</groupId>
<artifactId>org.apache.oltu.oauth2.client</artifactId>
<version>${oltu-version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.squareup.okhttp</groupId>
@ -139,7 +138,6 @@
</dependencies>
<properties>
<swagger-annotations-version>1.5.0</swagger-annotations-version>
<gson-version>2.3.1</gson-version>
<retrofit-version>1.9.0</retrofit-version>
<okhttp-version>2.4.0</okhttp-version>
<oltu-version>1.0.0</oltu-version>

View File

@ -121,7 +121,6 @@
<groupId>org.apache.oltu.oauth2</groupId>
<artifactId>org.apache.oltu.oauth2.client</artifactId>
<version>${oltu-version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.squareup.okhttp</groupId>
@ -139,7 +138,6 @@
</dependencies>
<properties>
<swagger-annotations-version>1.5.0</swagger-annotations-version>
<gson-version>2.3.1</gson-version>
<retrofit-version>1.9.0</retrofit-version>
<okhttp-version>2.4.0</okhttp-version>
<oltu-version>1.0.0</oltu-version>

View File

@ -156,7 +156,7 @@ public interface PetApi {
@FormUrlEncoded
@POST("/pet/{petId}")
Void updatePetWithForm(
@Path("petId") Long petId,@Field("name") String name,@Field("status") String status
@Path("petId") Long petId, @Field("name") String name, @Field("status") String status
);
/**
@ -172,7 +172,7 @@ public interface PetApi {
@FormUrlEncoded
@POST("/pet/{petId}")
void updatePetWithForm(
@Path("petId") Long petId,@Field("name") String name,@Field("status") String status, Callback<Void> cb
@Path("petId") Long petId, @Field("name") String name, @Field("status") String status, Callback<Void> cb
);
/**
@ -186,7 +186,7 @@ public interface PetApi {
@DELETE("/pet/{petId}")
Void deletePet(
@Path("petId") Long petId,@Header("api_key") String apiKey
@Path("petId") Long petId, @Header("api_key") String apiKey
);
/**
@ -200,7 +200,7 @@ public interface PetApi {
@DELETE("/pet/{petId}")
void deletePet(
@Path("petId") Long petId,@Header("api_key") String apiKey, Callback<Void> cb
@Path("petId") Long petId, @Header("api_key") String apiKey, Callback<Void> cb
);
/**
@ -216,7 +216,7 @@ public interface PetApi {
@Multipart
@POST("/pet/{petId}/uploadImage")
ApiResponse uploadFile(
@Path("petId") Long petId,@Part("additionalMetadata") String additionalMetadata,@Part("file") TypedFile file
@Path("petId") Long petId, @Part("additionalMetadata") String additionalMetadata, @Part("file") TypedFile file
);
/**
@ -232,7 +232,7 @@ public interface PetApi {
@Multipart
@POST("/pet/{petId}/uploadImage")
void uploadFile(
@Path("petId") Long petId,@Part("additionalMetadata") String additionalMetadata,@Part("file") TypedFile file, Callback<ApiResponse> cb
@Path("petId") Long petId, @Part("additionalMetadata") String additionalMetadata, @Part("file") TypedFile file, Callback<ApiResponse> cb
);
}

View File

@ -101,7 +101,7 @@ public interface UserApi {
@GET("/user/login")
String loginUser(
@Query("username") String username,@Query("password") String password
@Query("username") String username, @Query("password") String password
);
/**
@ -115,7 +115,7 @@ public interface UserApi {
@GET("/user/login")
void loginUser(
@Query("username") String username,@Query("password") String password, Callback<String> cb
@Query("username") String username, @Query("password") String password, Callback<String> cb
);
/**
@ -178,7 +178,7 @@ public interface UserApi {
@PUT("/user/{username}")
Void updateUser(
@Path("username") String username,@Body User body
@Path("username") String username, @Body User body
);
/**
@ -192,7 +192,7 @@ public interface UserApi {
@PUT("/user/{username}")
void updateUser(
@Path("username") String username,@Body User body, Callback<Void> cb
@Path("username") String username, @Body User body, Callback<Void> cb
);
/**