Skip to content

Commit 3e279fc

Browse files
committed
rebuilt
1 parent 3b9c28f commit 3e279fc

File tree

4 files changed

+26
-51
lines changed

4 files changed

+26
-51
lines changed

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

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package io.swagger.api;
22

33
import io.swagger.model.Pet;
4-
import io.swagger.model.InlineResponse200;
4+
import io.swagger.model.ApiResponse;
55
import java.io.File;
66

77
import javax.ws.rs.*;
@@ -14,57 +14,42 @@ public interface PetApi {
1414
@POST
1515
@Path("/pet")
1616
@Consumes({ "application/json", "application/xml" })
17-
@Produces({ "application/json", "application/xml" })
17+
@Produces({ "application/xml", "application/json" })
1818
public Response addPet(Pet body);
19-
@POST
20-
@Path("/pet?testing_byte_array=true")
21-
@Consumes({ "application/json", "application/xml" })
22-
@Produces({ "application/json", "application/xml" })
23-
public Response addPetUsingByteArray(byte[] body);
2419
@DELETE
2520
@Path("/pet/{petId}")
2621

27-
@Produces({ "application/json", "application/xml" })
22+
@Produces({ "application/xml", "application/json" })
2823
public Response deletePet(@PathParam("petId") Long petId,@HeaderParam("api_key") String apiKey);
2924
@GET
3025
@Path("/pet/findByStatus")
3126

32-
@Produces({ "application/json", "application/xml" })
27+
@Produces({ "application/xml", "application/json" })
3328
public Response findPetsByStatus(@QueryParam("status") List<String> status);
3429
@GET
3530
@Path("/pet/findByTags")
3631

37-
@Produces({ "application/json", "application/xml" })
32+
@Produces({ "application/xml", "application/json" })
3833
public Response findPetsByTags(@QueryParam("tags") List<String> tags);
3934
@GET
4035
@Path("/pet/{petId}")
4136

42-
@Produces({ "application/json", "application/xml" })
37+
@Produces({ "application/xml", "application/json" })
4338
public Response getPetById(@PathParam("petId") Long petId);
44-
@GET
45-
@Path("/pet/{petId}?response=inline_arbitrary_object")
46-
47-
@Produces({ "application/json", "application/xml" })
48-
public Response getPetByIdInObject(@PathParam("petId") Long petId);
49-
@GET
50-
@Path("/pet/{petId}?testing_byte_array=true")
51-
52-
@Produces({ "application/json", "application/xml" })
53-
public Response petPetIdtestingByteArraytrueGet(@PathParam("petId") Long petId);
5439
@PUT
5540
@Path("/pet")
5641
@Consumes({ "application/json", "application/xml" })
57-
@Produces({ "application/json", "application/xml" })
42+
@Produces({ "application/xml", "application/json" })
5843
public Response updatePet(Pet body);
5944
@POST
6045
@Path("/pet/{petId}")
6146
@Consumes({ "application/x-www-form-urlencoded" })
62-
@Produces({ "application/json", "application/xml" })
63-
public Response updatePetWithForm(@PathParam("petId") String petId,@Multipart(value = "name", required = false) String name,@Multipart(value = "status", required = false) String status);
47+
@Produces({ "application/xml", "application/json" })
48+
public Response updatePetWithForm(@PathParam("petId") Long petId,@Multipart(value = "name", required = false) String name,@Multipart(value = "status", required = false) String status);
6449
@POST
6550
@Path("/pet/{petId}/uploadImage")
6651
@Consumes({ "multipart/form-data" })
67-
@Produces({ "application/json", "application/xml" })
52+
@Produces({ "application/json" })
6853
public Response uploadFile(@PathParam("petId") Long petId,@Multipart(value = "additionalMetadata", required = false) String additionalMetadata, @Multipart(value = "file", required = false) InputStream fileInputStream,
6954
@Multipart(value = "file" , required = false) Attachment fileDetail);
7055
}
Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package io.swagger.api;
22

3-
import io.swagger.model.Order;
43
import java.util.Map;
4+
import io.swagger.model.Order;
55

66
import javax.ws.rs.*;
77
import javax.ws.rs.core.Response;
@@ -13,32 +13,22 @@ public interface StoreApi {
1313
@DELETE
1414
@Path("/store/order/{orderId}")
1515

16-
@Produces({ "application/json", "application/xml" })
17-
public Response deleteOrder(@PathParam("orderId") String orderId);
18-
@GET
19-
@Path("/store/findByStatus")
20-
21-
@Produces({ "application/json", "application/xml" })
22-
public Response findOrdersByStatus(@QueryParam("status") String status);
16+
@Produces({ "application/xml", "application/json" })
17+
public Response deleteOrder(@PathParam("orderId") Long orderId);
2318
@GET
2419
@Path("/store/inventory")
2520

26-
@Produces({ "application/json", "application/xml" })
21+
@Produces({ "application/json" })
2722
public Response getInventory();
2823
@GET
29-
@Path("/store/inventory?response=arbitrary_object")
30-
31-
@Produces({ "application/json", "application/xml" })
32-
public Response getInventoryInObject();
33-
@GET
3424
@Path("/store/order/{orderId}")
3525

36-
@Produces({ "application/json", "application/xml" })
37-
public Response getOrderById(@PathParam("orderId") String orderId);
26+
@Produces({ "application/xml", "application/json" })
27+
public Response getOrderById(@PathParam("orderId") Long orderId);
3828
@POST
3929
@Path("/store/order")
4030

41-
@Produces({ "application/json", "application/xml" })
31+
@Produces({ "application/xml", "application/json" })
4232
public Response placeOrder(Order body);
4333
}
4434

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,42 +13,42 @@ public interface UserApi {
1313
@POST
1414
@Path("/user")
1515

16-
@Produces({ "application/json", "application/xml" })
16+
@Produces({ "application/xml", "application/json" })
1717
public Response createUser(User body);
1818
@POST
1919
@Path("/user/createWithArray")
2020

21-
@Produces({ "application/json", "application/xml" })
21+
@Produces({ "application/xml", "application/json" })
2222
public Response createUsersWithArrayInput(List<User> body);
2323
@POST
2424
@Path("/user/createWithList")
2525

26-
@Produces({ "application/json", "application/xml" })
26+
@Produces({ "application/xml", "application/json" })
2727
public Response createUsersWithListInput(List<User> body);
2828
@DELETE
2929
@Path("/user/{username}")
3030

31-
@Produces({ "application/json", "application/xml" })
31+
@Produces({ "application/xml", "application/json" })
3232
public Response deleteUser(@PathParam("username") String username);
3333
@GET
3434
@Path("/user/{username}")
3535

36-
@Produces({ "application/json", "application/xml" })
36+
@Produces({ "application/xml", "application/json" })
3737
public Response getUserByName(@PathParam("username") String username);
3838
@GET
3939
@Path("/user/login")
4040

41-
@Produces({ "application/json", "application/xml" })
41+
@Produces({ "application/xml", "application/json" })
4242
public Response loginUser(@QueryParam("username") String username,@QueryParam("password") String password);
4343
@GET
4444
@Path("/user/logout")
4545

46-
@Produces({ "application/json", "application/xml" })
46+
@Produces({ "application/xml", "application/json" })
4747
public Response logoutUser();
4848
@PUT
4949
@Path("/user/{username}")
5050

51-
@Produces({ "application/json", "application/xml" })
51+
@Produces({ "application/xml", "application/json" })
5252
public Response updateUser(@PathParam("username") String username,User body);
5353
}
5454

samples/server/petstore/jaxrs-cxf/gen/java/io/swagger/model/Order.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static Order fromValue(String v) {
4545

4646
private StatusEnum status = null;
4747

48-
private Boolean complete = null;
48+
private Boolean complete = false;
4949

5050

5151
/**

0 commit comments

Comments
 (0)