forked from loafle/openapi-generator-original
rebuilt client
This commit is contained in:
parent
86c6892eb6
commit
64fbcb6045
@ -123,8 +123,17 @@
|
|||||||
<version>${servlet-api-version}</version>
|
<version>${servlet-api-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>sonatype-snapshots</id>
|
||||||
|
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
||||||
|
<snapshots>
|
||||||
|
<enabled>true</enabled>
|
||||||
|
</snapshots>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
<properties>
|
<properties>
|
||||||
<swagger-core-version>1.5.1-M1</swagger-core-version>
|
<swagger-core-version>1.5.3-M1-SNAPSHOT</swagger-core-version>
|
||||||
<jetty-version>8.1.11.v20130520</jetty-version>
|
<jetty-version>8.1.11.v20130520</jetty-version>
|
||||||
<jersey-version>1.13</jersey-version>
|
<jersey-version>1.13</jersey-version>
|
||||||
<slf4j-version>1.6.3</slf4j-version>
|
<slf4j-version>1.6.3</slf4j-version>
|
||||||
|
@ -64,6 +64,8 @@ public class PetApi {
|
|||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/json", "application/xml" })
|
||||||
@com.wordnik.swagger.annotations.ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma seperated strings", response = Pet.class, responseContainer = "List")
|
@com.wordnik.swagger.annotations.ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma seperated strings", response = Pet.class, responseContainer = "List")
|
||||||
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
||||||
|
@com.wordnik.swagger.annotations.ApiResponse(code = 200, message = "successful operation"),
|
||||||
|
|
||||||
@com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value") })
|
@com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value") })
|
||||||
|
|
||||||
public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter") @QueryParam("status") List<String> status)
|
public Response findPetsByStatus(@ApiParam(value = "Status values that need to be considered for filter") @QueryParam("status") List<String> status)
|
||||||
@ -79,6 +81,8 @@ public class PetApi {
|
|||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/json", "application/xml" })
|
||||||
@com.wordnik.swagger.annotations.ApiOperation(value = "Finds Pets by tags", notes = "Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List")
|
@com.wordnik.swagger.annotations.ApiOperation(value = "Finds Pets by tags", notes = "Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List")
|
||||||
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
||||||
|
@com.wordnik.swagger.annotations.ApiResponse(code = 200, message = "successful operation"),
|
||||||
|
|
||||||
@com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid tag value") })
|
@com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid tag value") })
|
||||||
|
|
||||||
public Response findPetsByTags(@ApiParam(value = "Tags to filter by") @QueryParam("tags") List<String> tags)
|
public Response findPetsByTags(@ApiParam(value = "Tags to filter by") @QueryParam("tags") List<String> tags)
|
||||||
@ -96,6 +100,8 @@ public class PetApi {
|
|||||||
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
||||||
@com.wordnik.swagger.annotations.ApiResponse(code = 404, message = "Pet not found"),
|
@com.wordnik.swagger.annotations.ApiResponse(code = 404, message = "Pet not found"),
|
||||||
|
|
||||||
|
@com.wordnik.swagger.annotations.ApiResponse(code = 200, message = "successful operation"),
|
||||||
|
|
||||||
@com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied") })
|
@com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied") })
|
||||||
|
|
||||||
public Response getPetById(@ApiParam(value = "ID of pet that needs to be fetched",required=true ) @PathParam("petId") Long petId)
|
public Response getPetById(@ApiParam(value = "ID of pet that needs to be fetched",required=true ) @PathParam("petId") Long petId)
|
||||||
@ -143,7 +149,8 @@ public class PetApi {
|
|||||||
@Consumes({ "multipart/form-data" })
|
@Consumes({ "multipart/form-data" })
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/json", "application/xml" })
|
||||||
@com.wordnik.swagger.annotations.ApiOperation(value = "uploads an image", notes = "", response = Void.class)
|
@com.wordnik.swagger.annotations.ApiOperation(value = "uploads an image", notes = "", response = Void.class)
|
||||||
@com.wordnik.swagger.annotations.ApiResponses(value = { })
|
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
||||||
|
@com.wordnik.swagger.annotations.ApiResponse(code = 0, message = "successful operation") })
|
||||||
|
|
||||||
public Response uploadFile(@ApiParam(value = "ID of pet to update",required=true ) @PathParam("petId") Long petId,
|
public Response uploadFile(@ApiParam(value = "ID of pet to update",required=true ) @PathParam("petId") Long petId,
|
||||||
@ApiParam(value = "Additional data to pass to server" )@FormParam("additionalMetadata") String additionalMetadata,
|
@ApiParam(value = "Additional data to pass to server" )@FormParam("additionalMetadata") String additionalMetadata,
|
||||||
|
@ -29,7 +29,8 @@ public class StoreApi {
|
|||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/json", "application/xml" })
|
||||||
@com.wordnik.swagger.annotations.ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "map")
|
@com.wordnik.swagger.annotations.ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "map")
|
||||||
@com.wordnik.swagger.annotations.ApiResponses(value = { })
|
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
||||||
|
@com.wordnik.swagger.annotations.ApiResponse(code = 200, message = "successful operation") })
|
||||||
|
|
||||||
public Response getInventory()
|
public Response getInventory()
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
@ -44,6 +45,8 @@ public class StoreApi {
|
|||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/json", "application/xml" })
|
||||||
@com.wordnik.swagger.annotations.ApiOperation(value = "Place an order for a pet", notes = "", response = Order.class)
|
@com.wordnik.swagger.annotations.ApiOperation(value = "Place an order for a pet", notes = "", response = Order.class)
|
||||||
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
||||||
|
@com.wordnik.swagger.annotations.ApiResponse(code = 200, message = "successful operation"),
|
||||||
|
|
||||||
@com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order") })
|
@com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order") })
|
||||||
|
|
||||||
public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ) Order body)
|
public Response placeOrder(@ApiParam(value = "order placed for purchasing the pet" ) Order body)
|
||||||
@ -61,6 +64,8 @@ public class StoreApi {
|
|||||||
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
||||||
@com.wordnik.swagger.annotations.ApiResponse(code = 404, message = "Order not found"),
|
@com.wordnik.swagger.annotations.ApiResponse(code = 404, message = "Order not found"),
|
||||||
|
|
||||||
|
@com.wordnik.swagger.annotations.ApiResponse(code = 200, message = "successful operation"),
|
||||||
|
|
||||||
@com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied") })
|
@com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied") })
|
||||||
|
|
||||||
public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched",required=true ) @PathParam("orderId") String orderId)
|
public Response getOrderById(@ApiParam(value = "ID of pet that needs to be fetched",required=true ) @PathParam("orderId") String orderId)
|
||||||
|
@ -29,7 +29,8 @@ public class UserApi {
|
|||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/json", "application/xml" })
|
||||||
@com.wordnik.swagger.annotations.ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = Void.class)
|
@com.wordnik.swagger.annotations.ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = Void.class)
|
||||||
@com.wordnik.swagger.annotations.ApiResponses(value = { })
|
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
||||||
|
@com.wordnik.swagger.annotations.ApiResponse(code = 0, message = "successful operation") })
|
||||||
|
|
||||||
public Response createUser(@ApiParam(value = "Created user object" ) User body)
|
public Response createUser(@ApiParam(value = "Created user object" ) User body)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
@ -43,7 +44,8 @@ public class UserApi {
|
|||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/json", "application/xml" })
|
||||||
@com.wordnik.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class)
|
@com.wordnik.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class)
|
||||||
@com.wordnik.swagger.annotations.ApiResponses(value = { })
|
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
||||||
|
@com.wordnik.swagger.annotations.ApiResponse(code = 0, message = "successful operation") })
|
||||||
|
|
||||||
public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ) List<User> body)
|
public Response createUsersWithArrayInput(@ApiParam(value = "List of user object" ) List<User> body)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
@ -57,7 +59,8 @@ public class UserApi {
|
|||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/json", "application/xml" })
|
||||||
@com.wordnik.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class)
|
@com.wordnik.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = Void.class)
|
||||||
@com.wordnik.swagger.annotations.ApiResponses(value = { })
|
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
||||||
|
@com.wordnik.swagger.annotations.ApiResponse(code = 0, message = "successful operation") })
|
||||||
|
|
||||||
public Response createUsersWithListInput(@ApiParam(value = "List of user object" ) List<User> body)
|
public Response createUsersWithListInput(@ApiParam(value = "List of user object" ) List<User> body)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
@ -72,6 +75,8 @@ public class UserApi {
|
|||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/json", "application/xml" })
|
||||||
@com.wordnik.swagger.annotations.ApiOperation(value = "Logs user into the system", notes = "", response = String.class)
|
@com.wordnik.swagger.annotations.ApiOperation(value = "Logs user into the system", notes = "", response = String.class)
|
||||||
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
||||||
|
@com.wordnik.swagger.annotations.ApiResponse(code = 200, message = "successful operation"),
|
||||||
|
|
||||||
@com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid username/password supplied") })
|
@com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid username/password supplied") })
|
||||||
|
|
||||||
public Response loginUser(@ApiParam(value = "The user name for login") @QueryParam("username") String username,
|
public Response loginUser(@ApiParam(value = "The user name for login") @QueryParam("username") String username,
|
||||||
@ -87,7 +92,8 @@ public class UserApi {
|
|||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/json", "application/xml" })
|
||||||
@com.wordnik.swagger.annotations.ApiOperation(value = "Logs out current logged in user session", notes = "", response = Void.class)
|
@com.wordnik.swagger.annotations.ApiOperation(value = "Logs out current logged in user session", notes = "", response = Void.class)
|
||||||
@com.wordnik.swagger.annotations.ApiResponses(value = { })
|
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
||||||
|
@com.wordnik.swagger.annotations.ApiResponse(code = 0, message = "successful operation") })
|
||||||
|
|
||||||
public Response logoutUser()
|
public Response logoutUser()
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
@ -104,6 +110,8 @@ public class UserApi {
|
|||||||
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
@com.wordnik.swagger.annotations.ApiResponses(value = {
|
||||||
@com.wordnik.swagger.annotations.ApiResponse(code = 404, message = "User not found"),
|
@com.wordnik.swagger.annotations.ApiResponse(code = 404, message = "User not found"),
|
||||||
|
|
||||||
|
@com.wordnik.swagger.annotations.ApiResponse(code = 200, message = "successful operation"),
|
||||||
|
|
||||||
@com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied") })
|
@com.wordnik.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied") })
|
||||||
|
|
||||||
public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing. ",required=true ) @PathParam("username") String username)
|
public Response getUserByName(@ApiParam(value = "The name that needs to be fetched. Use user1 for testing. ",required=true ) @PathParam("username") String username)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user