Skip to content

Commit 51deb9a

Browse files
committed
Update "jaxrs-cxf-client" sample
1 parent a6ca59f commit 51deb9a

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/api/PetApi.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public interface PetApi {
4141
@Produces({ "application/xml", "application/json" })
4242
@ApiOperation(value = "Add a new pet to the store", tags={ })
4343
@ApiResponses(value = {
44-
@ApiResponse(code = 405, message = "Invalid input", response = .class) })
44+
@ApiResponse(code = 405, message = "Invalid input") })
4545
public void addPet(Pet body);
4646

4747
/**
@@ -55,7 +55,7 @@ public interface PetApi {
5555
@Produces({ "application/xml", "application/json" })
5656
@ApiOperation(value = "Deletes a pet", tags={ })
5757
@ApiResponses(value = {
58-
@ApiResponse(code = 400, message = "Invalid pet value", response = .class) })
58+
@ApiResponse(code = 400, message = "Invalid pet value") })
5959
public void deletePet(@PathParam("petId") Long petId, @HeaderParam("api_key") String apiKey);
6060

6161
/**
@@ -69,8 +69,8 @@ public interface PetApi {
6969
@Produces({ "application/xml", "application/json" })
7070
@ApiOperation(value = "Finds Pets by status", tags={ })
7171
@ApiResponses(value = {
72-
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "array"),
73-
@ApiResponse(code = 400, message = "Invalid status value", response = .class) })
72+
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
73+
@ApiResponse(code = 400, message = "Invalid status value") })
7474
public List<Pet> findPetsByStatus(@QueryParam("status")List<String> status);
7575

7676
/**
@@ -84,8 +84,8 @@ public interface PetApi {
8484
@Produces({ "application/xml", "application/json" })
8585
@ApiOperation(value = "Finds Pets by tags", tags={ })
8686
@ApiResponses(value = {
87-
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "array"),
88-
@ApiResponse(code = 400, message = "Invalid tag value", response = .class) })
87+
@ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
88+
@ApiResponse(code = 400, message = "Invalid tag value") })
8989
public List<Pet> findPetsByTags(@QueryParam("tags")List<String> tags);
9090

9191
/**
@@ -100,8 +100,8 @@ public interface PetApi {
100100
@ApiOperation(value = "Find pet by ID", tags={ })
101101
@ApiResponses(value = {
102102
@ApiResponse(code = 200, message = "successful operation", response = Pet.class),
103-
@ApiResponse(code = 400, message = "Invalid ID supplied", response = .class),
104-
@ApiResponse(code = 404, message = "Pet not found", response = .class) })
103+
@ApiResponse(code = 400, message = "Invalid ID supplied"),
104+
@ApiResponse(code = 404, message = "Pet not found") })
105105
public Pet getPetById(@PathParam("petId") Long petId);
106106

107107
/**
@@ -116,9 +116,9 @@ public interface PetApi {
116116
@Produces({ "application/xml", "application/json" })
117117
@ApiOperation(value = "Update an existing pet", tags={ })
118118
@ApiResponses(value = {
119-
@ApiResponse(code = 400, message = "Invalid ID supplied", response = .class),
120-
@ApiResponse(code = 404, message = "Pet not found", response = .class),
121-
@ApiResponse(code = 405, message = "Validation exception", response = .class) })
119+
@ApiResponse(code = 400, message = "Invalid ID supplied"),
120+
@ApiResponse(code = 404, message = "Pet not found"),
121+
@ApiResponse(code = 405, message = "Validation exception") })
122122
public void updatePet(Pet body);
123123

124124
/**
@@ -133,7 +133,7 @@ public interface PetApi {
133133
@Produces({ "application/xml", "application/json" })
134134
@ApiOperation(value = "Updates a pet in the store with form data", tags={ })
135135
@ApiResponses(value = {
136-
@ApiResponse(code = 405, message = "Invalid input", response = .class) })
136+
@ApiResponse(code = 405, message = "Invalid input") })
137137
public void updatePetWithForm(@PathParam("petId") Long petId, @Multipart(value = "name", required = false) String name, @Multipart(value = "status", required = false) String status);
138138

139139
/**

samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/api/StoreApi.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public interface StoreApi {
3838
@Produces({ "application/xml", "application/json" })
3939
@ApiOperation(value = "Delete purchase order by ID", tags={ })
4040
@ApiResponses(value = {
41-
@ApiResponse(code = 400, message = "Invalid ID supplied", response = .class),
42-
@ApiResponse(code = 404, message = "Order not found", response = .class) })
41+
@ApiResponse(code = 400, message = "Invalid ID supplied"),
42+
@ApiResponse(code = 404, message = "Order not found") })
4343
public void deleteOrder(@PathParam("orderId") String orderId);
4444

4545
/**
@@ -53,7 +53,7 @@ public interface StoreApi {
5353
@Produces({ "application/json" })
5454
@ApiOperation(value = "Returns pet inventories by status", tags={ })
5555
@ApiResponses(value = {
56-
@ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "map") })
56+
@ApiResponse(code = 200, message = "successful operation", response = Map.class, responseContainer = "Map") })
5757
public Map<String, Integer> getInventory();
5858

5959
/**
@@ -68,8 +68,8 @@ public interface StoreApi {
6868
@ApiOperation(value = "Find purchase order by ID", tags={ })
6969
@ApiResponses(value = {
7070
@ApiResponse(code = 200, message = "successful operation", response = Order.class),
71-
@ApiResponse(code = 400, message = "Invalid ID supplied", response = .class),
72-
@ApiResponse(code = 404, message = "Order not found", response = .class) })
71+
@ApiResponse(code = 400, message = "Invalid ID supplied"),
72+
@ApiResponse(code = 404, message = "Order not found") })
7373
public Order getOrderById(@PathParam("orderId") Long orderId);
7474

7575
/**
@@ -84,7 +84,7 @@ public interface StoreApi {
8484
@ApiOperation(value = "Place an order for a pet", tags={ })
8585
@ApiResponses(value = {
8686
@ApiResponse(code = 200, message = "successful operation", response = Order.class),
87-
@ApiResponse(code = 400, message = "Invalid Order", response = .class) })
87+
@ApiResponse(code = 400, message = "Invalid Order") })
8888
public Order placeOrder(Order body);
8989
}
9090

samples/client/petstore/jaxrs-cxf-client/src/gen/java/io/swagger/api/UserApi.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public interface UserApi {
3838
@Produces({ "application/xml", "application/json" })
3939
@ApiOperation(value = "Create user", tags={ })
4040
@ApiResponses(value = {
41-
@ApiResponse(code = 0, message = "successful operation", response = .class) })
41+
@ApiResponse(code = 200, message = "successful operation") })
4242
public void createUser(User body);
4343

4444
/**
@@ -52,7 +52,7 @@ public interface UserApi {
5252
@Produces({ "application/xml", "application/json" })
5353
@ApiOperation(value = "Creates list of users with given input array", tags={ })
5454
@ApiResponses(value = {
55-
@ApiResponse(code = 0, message = "successful operation", response = .class) })
55+
@ApiResponse(code = 200, message = "successful operation") })
5656
public void createUsersWithArrayInput(List<User> body);
5757

5858
/**
@@ -66,7 +66,7 @@ public interface UserApi {
6666
@Produces({ "application/xml", "application/json" })
6767
@ApiOperation(value = "Creates list of users with given input array", tags={ })
6868
@ApiResponses(value = {
69-
@ApiResponse(code = 0, message = "successful operation", response = .class) })
69+
@ApiResponse(code = 200, message = "successful operation") })
7070
public void createUsersWithListInput(List<User> body);
7171

7272
/**
@@ -80,8 +80,8 @@ public interface UserApi {
8080
@Produces({ "application/xml", "application/json" })
8181
@ApiOperation(value = "Delete user", tags={ })
8282
@ApiResponses(value = {
83-
@ApiResponse(code = 400, message = "Invalid username supplied", response = .class),
84-
@ApiResponse(code = 404, message = "User not found", response = .class) })
83+
@ApiResponse(code = 400, message = "Invalid username supplied"),
84+
@ApiResponse(code = 404, message = "User not found") })
8585
public void deleteUser(@PathParam("username") String username);
8686

8787
/**
@@ -96,8 +96,8 @@ public interface UserApi {
9696
@ApiOperation(value = "Get user by user name", tags={ })
9797
@ApiResponses(value = {
9898
@ApiResponse(code = 200, message = "successful operation", response = User.class),
99-
@ApiResponse(code = 400, message = "Invalid username supplied", response = .class),
100-
@ApiResponse(code = 404, message = "User not found", response = .class) })
99+
@ApiResponse(code = 400, message = "Invalid username supplied"),
100+
@ApiResponse(code = 404, message = "User not found") })
101101
public User getUserByName(@PathParam("username") String username);
102102

103103
/**
@@ -112,7 +112,7 @@ public interface UserApi {
112112
@ApiOperation(value = "Logs user into the system", tags={ })
113113
@ApiResponses(value = {
114114
@ApiResponse(code = 200, message = "successful operation", response = String.class),
115-
@ApiResponse(code = 400, message = "Invalid username/password supplied", response = .class) })
115+
@ApiResponse(code = 400, message = "Invalid username/password supplied") })
116116
public String loginUser(@QueryParam("username")String username, @QueryParam("password")String password);
117117

118118
/**
@@ -126,7 +126,7 @@ public interface UserApi {
126126
@Produces({ "application/xml", "application/json" })
127127
@ApiOperation(value = "Logs out current logged in user session", tags={ })
128128
@ApiResponses(value = {
129-
@ApiResponse(code = 0, message = "successful operation", response = .class) })
129+
@ApiResponse(code = 200, message = "successful operation") })
130130
public void logoutUser();
131131

132132
/**
@@ -140,8 +140,8 @@ public interface UserApi {
140140
@Produces({ "application/xml", "application/json" })
141141
@ApiOperation(value = "Updated user", tags={ })
142142
@ApiResponses(value = {
143-
@ApiResponse(code = 400, message = "Invalid user supplied", response = .class),
144-
@ApiResponse(code = 404, message = "User not found", response = .class) })
143+
@ApiResponse(code = 400, message = "Invalid user supplied"),
144+
@ApiResponse(code = 404, message = "User not found") })
145145
public void updateUser(@PathParam("username") String username, User body);
146146
}
147147

0 commit comments

Comments
 (0)