1385 Generate constants for path in spring boot @RequestMapping (#19782)

This commit is contained in:
Lukáš Vasek 2025-07-09 10:26:52 +02:00 committed by GitHub
parent 1b352c2d00
commit 117be2ca4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
194 changed files with 2377 additions and 1189 deletions

View File

@ -22,6 +22,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Sets;
import com.samskivert.mustache.Mustache;
import io.swagger.v3.oas.models.OpenAPI;
@ -50,6 +51,7 @@ import org.openapitools.codegen.model.ModelMap;
import org.openapitools.codegen.model.ModelsMap;
import org.openapitools.codegen.model.OperationMap;
import org.openapitools.codegen.model.OperationsMap;
import org.openapitools.codegen.templating.mustache.ReplaceAllLambda;
import org.openapitools.codegen.utils.CamelizeOption;
import org.openapitools.codegen.utils.ModelUtils;
import org.slf4j.Logger;

View File

@ -129,6 +129,7 @@ public interface {{classname}} {
{{/jdk8-default-interface}}
{{#operation}}
public static final String PATH_{{#lambda.uppercase}}{{#lambda.snakecase}}{{{operationId}}}{{/lambda.snakecase}}{{/lambda.uppercase}} = "{{{path}}}";
/**
* {{httpMethod}} {{{path}}}{{#summary}} : {{.}}{{/summary}}
{{#notes}}
@ -246,7 +247,7 @@ public interface {{classname}} {
{{/implicitHeadersParams.0}}
@RequestMapping(
method = RequestMethod.{{httpMethod}},
value = "{{{path}}}"{{#singleContentTypes}}{{#hasProduces}},
value = {{classname}}.PATH_{{#lambda.uppercase}}{{#lambda.snakecase}}{{{operationId}}}{{/lambda.snakecase}}{{/lambda.uppercase}}{{#singleContentTypes}}{{#hasProduces}},
produces = { {{#vendorExtensions.x-accepts}}"{{{.}}}"{{^-last}}, {{/-last}}{{/vendorExtensions.x-accepts}} }{{/hasProduces}}{{#hasConsumes}},
consumes = "{{{vendorExtensions.x-content-type}}}"{{/hasConsumes}}{{/singleContentTypes}}{{^singleContentTypes}}{{#hasProduces}},
produces = { {{#produces}}"{{{mediaType}}}"{{^-last}}, {{/-last}}{{/produces}} }{{/hasProduces}}{{#hasConsumes}},

View File

@ -73,7 +73,7 @@ public class MergedSpecBuilderTest {
.assertMethod("spec1OperationComplex")
.hasReturnType("ResponseEntity<Spec1Model>")
.assertMethodAnnotations()
.containsWithNameAndAttributes("RequestMapping", ImmutableMap.of("value", "\"/spec1/complex/{param1}/path\""))
.containsWithNameAndAttributes("RequestMapping", ImmutableMap.of("value", "Spec1Api.PATH_SPEC1_OPERATION_COMPLEX"))
.toMethod()
.assertParameter("param1")
.hasType("String")

View File

@ -123,7 +123,7 @@ public class SpringCodegenTest {
.containsWithNameAndAttributes("Operation", ImmutableMap.of("operationId", "\"getZebras\""))
.containsWithNameAndAttributes("RequestMapping", ImmutableMap.of(
"method", "RequestMethod.GET",
"value", "\"/zebras\""
"value", "ZebrasApi.PATH_GET_ZEBRAS"
))
.toMethod()
.assertParameter("limit").hasType("BigDecimal")
@ -201,7 +201,7 @@ public class SpringCodegenTest {
.containsWithNameAndAttributes("Operation", ImmutableMap.of("operationId", "\"getZebras\""))
.containsWithNameAndAttributes("RequestMapping", ImmutableMap.of(
"method", "RequestMethod.GET",
"value", "\"/zebras\""
"value", "ZebrasApi.PATH_GET_ZEBRAS"
))
.toMethod()
.assertParameter("limit").hasType("Optional<BigDecimal>")
@ -1108,8 +1108,10 @@ public class SpringCodegenTest {
final Map<String, File> files = generateFiles(codegen, "src/test/resources/2_0/petstore.yaml");
// Check that the @RequestMapping annotation is generated in the Api file
final File petApiFile = files.get("PetApi.java");
assertFileContains(petApiFile.toPath(), "@RequestMapping(\"${openapi.openAPIPetstore.base-path:/v2}\")");
JavaFileAssert.assertThat(files.get("PetApi.java"))
.fileContains("@RequestMapping(\"${openapi.openAPIPetstore.base-path:/v2}\")",
"public static final String PATH_ADD_PET = \"/pet\";",
"value = PetApi.PATH_ADD_PET");
// Check that the @RequestMapping annotation is not generated in the Controller file
final File petApiControllerFile = files.get("PetApiController.java");

View File

@ -25,6 +25,7 @@ import javax.annotation.Generated;
@Validated
public interface SomeApi {
public static final String PATH_SOME_ENDPOINT_GET = "/some/endpoint";
/**
* GET /some/endpoint
*
@ -32,7 +33,7 @@ public interface SomeApi {
*/
@RequestMapping(
method = RequestMethod.GET,
value = "/some/endpoint"
value = SomeApi.PATH_SOME_ENDPOINT_GET
)
ResponseEntity<Void> someEndpointGet(

View File

@ -30,6 +30,7 @@ import javax.annotation.Generated;
@Api(value = "Default", description = "the Default API")
public interface DefaultApi {
public static final String PATH_GET = "/thingy/{date}";
/**
* GET /thingy/{date}
*
@ -49,7 +50,7 @@ public interface DefaultApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/thingy/{date}"
value = DefaultApi.PATH_GET
)
ResponseEntity<Void> get(
@ -60,6 +61,7 @@ public interface DefaultApi {
);
public static final String PATH_UPDATE_PET_WITH_FORM = "/thingy/{date}";
/**
* POST /thingy/{date}
* update with form data
@ -78,7 +80,7 @@ public interface DefaultApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/thingy/{date}",
value = DefaultApi.PATH_UPDATE_PET_WITH_FORM,
consumes = "application/x-www-form-urlencoded"
)

View File

@ -40,6 +40,7 @@ import javax.annotation.Generated;
@Tag(name = "pet", description = "Everything about your Pets")
public interface PetApi {
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -61,7 +62,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
consumes = "application/json"
)
@ -70,6 +71,7 @@ public interface PetApi {
);
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -92,7 +94,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
ResponseEntity<Void> deletePet(
@ -101,6 +103,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -127,7 +130,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/json", "application/xml" }
)
@ -136,6 +139,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -165,7 +169,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/json", "application/xml" }
)
@ -174,6 +178,7 @@ public interface PetApi {
);
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -202,7 +207,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -211,6 +216,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -236,7 +242,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
consumes = "application/json"
)
@ -245,6 +251,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -268,7 +275,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = "application/x-www-form-urlencoded"
)
@ -279,6 +286,7 @@ public interface PetApi {
);
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -304,7 +312,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@ -40,6 +40,7 @@ import javax.annotation.Generated;
@Tag(name = "store", description = "Access to Petstore orders")
public interface StoreApi {
public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
/**
* DELETE /store/order/{orderId} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -60,7 +61,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{orderId}"
value = StoreApi.PATH_DELETE_ORDER
)
ResponseEntity<Void> deleteOrder(
@ -68,6 +69,7 @@ public interface StoreApi {
);
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -90,7 +92,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -99,6 +101,7 @@ public interface StoreApi {
);
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
/**
* GET /store/order/{orderId} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -124,7 +127,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -133,6 +136,7 @@ public interface StoreApi {
);
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -156,7 +160,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@ -40,6 +40,7 @@ import javax.annotation.Generated;
@Tag(name = "user", description = "Operations about user")
public interface UserApi {
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -61,7 +62,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = "application/json"
)
@ -70,6 +71,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -91,7 +93,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = "application/json"
)
@ -100,6 +102,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -121,7 +124,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = "application/json"
)
@ -130,6 +133,7 @@ public interface UserApi {
);
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -153,7 +157,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
ResponseEntity<Void> deleteUser(
@ -161,6 +165,7 @@ public interface UserApi {
);
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -186,7 +191,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/json", "application/xml" }
)
@ -195,6 +200,7 @@ public interface UserApi {
);
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -219,7 +225,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/json", "application/xml" }
)
@ -229,6 +235,7 @@ public interface UserApi {
);
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -249,7 +256,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
ResponseEntity<Void> logoutUser(
@ -257,6 +264,7 @@ public interface UserApi {
);
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -281,7 +289,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = "application/json"
)

View File

@ -29,6 +29,7 @@ import javax.annotation.Generated;
@Api(value = "pet", description = "Everything about your Pets")
public interface PetApi {
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -56,7 +57,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -66,6 +67,7 @@ public interface PetApi {
);
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -91,7 +93,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
ResponseEntity<Void> deletePet(
@ -100,6 +102,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -127,7 +130,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/json", "application/xml" }
)
@ -136,6 +139,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -165,7 +169,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/json", "application/xml" }
)
@ -174,6 +178,7 @@ public interface PetApi {
);
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -200,7 +205,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -209,6 +214,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -242,7 +248,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -252,6 +258,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -278,7 +285,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = "application/x-www-form-urlencoded"
)
@ -289,6 +296,7 @@ public interface PetApi {
);
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -316,7 +324,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@ -29,6 +29,7 @@ import javax.annotation.Generated;
@Api(value = "store", description = "Access to Petstore orders")
public interface StoreApi {
public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
/**
* DELETE /store/order/{orderId} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -49,7 +50,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{orderId}"
value = StoreApi.PATH_DELETE_ORDER
)
ResponseEntity<Void> deleteOrder(
@ -57,6 +58,7 @@ public interface StoreApi {
);
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -79,7 +81,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -88,6 +90,7 @@ public interface StoreApi {
);
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
/**
* GET /store/order/{orderId} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -111,7 +114,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -120,6 +123,7 @@ public interface StoreApi {
);
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -141,7 +145,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@ -29,6 +29,7 @@ import javax.annotation.Generated;
@Api(value = "user", description = "Operations about user")
public interface UserApi {
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -50,7 +51,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = "application/json"
)
@ -59,6 +60,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -80,7 +82,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = "application/json"
)
@ -89,6 +91,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -110,7 +113,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = "application/json"
)
@ -119,6 +122,7 @@ public interface UserApi {
);
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -142,7 +146,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
ResponseEntity<Void> deleteUser(
@ -150,6 +154,7 @@ public interface UserApi {
);
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -173,7 +178,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/json", "application/xml" }
)
@ -182,6 +187,7 @@ public interface UserApi {
);
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -204,7 +210,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/json", "application/xml" }
)
@ -214,6 +220,7 @@ public interface UserApi {
);
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -234,7 +241,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
ResponseEntity<Void> logoutUser(
@ -242,6 +249,7 @@ public interface UserApi {
);
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -266,7 +274,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = "application/json"
)

View File

@ -31,6 +31,7 @@ import javax.annotation.Generated;
@Api(value = "pet tag", description = "the pet tag API")
public interface PetController {
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -54,7 +55,7 @@ public interface PetController {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetController.PATH_ADD_PET,
consumes = "application/json"
)
@ -63,6 +64,7 @@ public interface PetController {
);
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -87,7 +89,7 @@ public interface PetController {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetController.PATH_DELETE_PET
)
ResponseEntity<Void> deletePet(
@ -96,6 +98,7 @@ public interface PetController {
);
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -124,7 +127,7 @@ public interface PetController {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetController.PATH_FIND_PETS_BY_STATUS,
produces = { "application/json", "application/xml" }
)
@ -134,6 +137,7 @@ public interface PetController {
);
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -164,7 +168,7 @@ public interface PetController {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetController.PATH_FIND_PETS_BY_TAGS,
produces = { "application/json", "application/xml" }
)
@ -174,6 +178,7 @@ public interface PetController {
);
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -200,7 +205,7 @@ public interface PetController {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetController.PATH_GET_PET_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -209,6 +214,7 @@ public interface PetController {
);
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -236,7 +242,7 @@ public interface PetController {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetController.PATH_UPDATE_PET,
consumes = "application/json"
)
@ -245,6 +251,7 @@ public interface PetController {
);
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -270,7 +277,7 @@ public interface PetController {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetController.PATH_UPDATE_PET_WITH_FORM,
consumes = "application/x-www-form-urlencoded"
)
@ -281,6 +288,7 @@ public interface PetController {
);
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -307,7 +315,7 @@ public interface PetController {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetController.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@ -29,6 +29,7 @@ import javax.annotation.Generated;
@Api(value = "store tag", description = "the store tag API")
public interface StoreController {
public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
/**
* DELETE /store/order/{orderId} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -49,7 +50,7 @@ public interface StoreController {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{orderId}"
value = StoreController.PATH_DELETE_ORDER
)
ResponseEntity<Void> deleteOrder(
@ -57,6 +58,7 @@ public interface StoreController {
);
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -79,7 +81,7 @@ public interface StoreController {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreController.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -88,6 +90,7 @@ public interface StoreController {
);
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
/**
* GET /store/order/{orderId} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -111,7 +114,7 @@ public interface StoreController {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
value = StoreController.PATH_GET_ORDER_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -120,6 +123,7 @@ public interface StoreController {
);
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -140,7 +144,7 @@ public interface StoreController {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreController.PATH_PLACE_ORDER,
produces = { "application/json", "application/xml" }
)

View File

@ -29,6 +29,7 @@ import javax.annotation.Generated;
@Api(value = "user tag", description = "the user tag API")
public interface UserController {
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -47,7 +48,7 @@ public interface UserController {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/user"
value = UserController.PATH_CREATE_USER
)
ResponseEntity<Void> createUser(
@ -55,6 +56,7 @@ public interface UserController {
);
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -72,7 +74,7 @@ public interface UserController {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray"
value = UserController.PATH_CREATE_USERS_WITH_ARRAY_INPUT
)
ResponseEntity<Void> createUsersWithArrayInput(
@ -80,6 +82,7 @@ public interface UserController {
);
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -97,7 +100,7 @@ public interface UserController {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList"
value = UserController.PATH_CREATE_USERS_WITH_LIST_INPUT
)
ResponseEntity<Void> createUsersWithListInput(
@ -105,6 +108,7 @@ public interface UserController {
);
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -125,7 +129,7 @@ public interface UserController {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserController.PATH_DELETE_USER
)
ResponseEntity<Void> deleteUser(
@ -133,6 +137,7 @@ public interface UserController {
);
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -155,7 +160,7 @@ public interface UserController {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserController.PATH_GET_USER_BY_NAME,
produces = { "application/json", "application/xml" }
)
@ -164,6 +169,7 @@ public interface UserController {
);
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -185,7 +191,7 @@ public interface UserController {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserController.PATH_LOGIN_USER,
produces = { "application/json", "application/xml" }
)
@ -195,6 +201,7 @@ public interface UserController {
);
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -211,7 +218,7 @@ public interface UserController {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserController.PATH_LOGOUT_USER
)
ResponseEntity<Void> logoutUser(
@ -219,6 +226,7 @@ public interface UserController {
);
public static final String PATH_LOGOUT_USER_OPTIONS = "/user/logout";
/**
* OPTIONS /user/logout : logoutUserOptions
*
@ -235,7 +243,7 @@ public interface UserController {
})
@RequestMapping(
method = RequestMethod.OPTIONS,
value = "/user/logout"
value = UserController.PATH_LOGOUT_USER_OPTIONS
)
ResponseEntity<Void> logoutUserOptions(
@ -243,6 +251,7 @@ public interface UserController {
);
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -264,7 +273,7 @@ public interface UserController {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}"
value = UserController.PATH_UPDATE_USER
)
ResponseEntity<Void> updateUser(

View File

@ -29,6 +29,7 @@ import javax.annotation.Generated;
@Api(value = "pet", description = "Everything about your Pets")
public interface PetApi {
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -56,7 +57,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -66,6 +67,7 @@ public interface PetApi {
);
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -91,7 +93,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
ResponseEntity<Void> deletePet(
@ -100,6 +102,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -127,7 +130,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/json", "application/xml" }
)
@ -136,6 +139,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -165,7 +169,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/json", "application/xml" }
)
@ -174,6 +178,7 @@ public interface PetApi {
);
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -200,7 +205,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -209,6 +214,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -242,7 +248,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -252,6 +258,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -278,7 +285,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = "application/x-www-form-urlencoded"
)
@ -289,6 +296,7 @@ public interface PetApi {
);
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -316,7 +324,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@ -29,6 +29,7 @@ import javax.annotation.Generated;
@Api(value = "store", description = "Access to Petstore orders")
public interface StoreApi {
public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
/**
* DELETE /store/order/{orderId} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -49,7 +50,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{orderId}"
value = StoreApi.PATH_DELETE_ORDER
)
ResponseEntity<Void> deleteOrder(
@ -57,6 +58,7 @@ public interface StoreApi {
);
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -79,7 +81,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -88,6 +90,7 @@ public interface StoreApi {
);
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
/**
* GET /store/order/{orderId} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -111,7 +114,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -120,6 +123,7 @@ public interface StoreApi {
);
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -141,7 +145,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@ -29,6 +29,7 @@ import javax.annotation.Generated;
@Api(value = "user", description = "Operations about user")
public interface UserApi {
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -50,7 +51,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = "application/json"
)
@ -59,6 +60,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -80,7 +82,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = "application/json"
)
@ -89,6 +91,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -110,7 +113,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = "application/json"
)
@ -119,6 +122,7 @@ public interface UserApi {
);
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -142,7 +146,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
ResponseEntity<Void> deleteUser(
@ -150,6 +154,7 @@ public interface UserApi {
);
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -173,7 +178,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/json", "application/xml" }
)
@ -182,6 +187,7 @@ public interface UserApi {
);
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -204,7 +210,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/json", "application/xml" }
)
@ -214,6 +220,7 @@ public interface UserApi {
);
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -234,7 +241,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
ResponseEntity<Void> logoutUser(
@ -242,6 +249,7 @@ public interface UserApi {
);
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -266,7 +274,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = "application/json"
)

View File

@ -27,6 +27,7 @@ import jakarta.annotation.Generated;
@Validated
public interface PetApi {
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -37,7 +38,7 @@ public interface PetApi {
*/
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -47,6 +48,7 @@ public interface PetApi {
);
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -57,7 +59,7 @@ public interface PetApi {
*/
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
ResponseEntity<Void> deletePet(
@ -66,6 +68,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -76,7 +79,7 @@ public interface PetApi {
*/
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/json", "application/xml" }
)
@ -85,6 +88,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -97,7 +101,7 @@ public interface PetApi {
@Deprecated
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/json", "application/xml" }
)
@ -106,6 +110,7 @@ public interface PetApi {
);
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -117,7 +122,7 @@ public interface PetApi {
*/
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -126,6 +131,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -140,7 +146,7 @@ public interface PetApi {
*/
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -150,6 +156,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -161,7 +168,7 @@ public interface PetApi {
*/
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = "application/x-www-form-urlencoded"
)
@ -172,6 +179,7 @@ public interface PetApi {
);
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -183,7 +191,7 @@ public interface PetApi {
*/
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@ -27,6 +27,7 @@ import jakarta.annotation.Generated;
@Validated
public interface StoreApi {
public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
/**
* DELETE /store/order/{orderId} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -37,7 +38,7 @@ public interface StoreApi {
*/
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{orderId}"
value = StoreApi.PATH_DELETE_ORDER
)
ResponseEntity<Void> deleteOrder(
@ -45,6 +46,7 @@ public interface StoreApi {
);
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -53,7 +55,7 @@ public interface StoreApi {
*/
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -62,6 +64,7 @@ public interface StoreApi {
);
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
/**
* GET /store/order/{orderId} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -73,7 +76,7 @@ public interface StoreApi {
*/
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -82,6 +85,7 @@ public interface StoreApi {
);
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -92,7 +96,7 @@ public interface StoreApi {
*/
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@ -27,6 +27,7 @@ import jakarta.annotation.Generated;
@Validated
public interface UserApi {
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -36,7 +37,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = "application/json"
)
@ -45,6 +46,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -54,7 +56,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = "application/json"
)
@ -63,6 +65,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -72,7 +75,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = "application/json"
)
@ -81,6 +84,7 @@ public interface UserApi {
);
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -91,7 +95,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
ResponseEntity<Void> deleteUser(
@ -99,6 +103,7 @@ public interface UserApi {
);
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -110,7 +115,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/json", "application/xml" }
)
@ -119,6 +124,7 @@ public interface UserApi {
);
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -130,7 +136,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/json", "application/xml" }
)
@ -140,6 +146,7 @@ public interface UserApi {
);
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -148,7 +155,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
ResponseEntity<Void> logoutUser(
@ -156,6 +163,7 @@ public interface UserApi {
);
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -167,7 +175,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = "application/json"
)

View File

@ -40,6 +40,7 @@ import jakarta.annotation.Generated;
@Tag(name = "pet", description = "Everything about your Pets")
public interface PetApi {
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -66,7 +67,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -76,6 +77,7 @@ public interface PetApi {
);
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -98,7 +100,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
ResponseEntity<Void> deletePet(
@ -107,6 +109,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -133,7 +136,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/json", "application/xml" }
)
@ -142,6 +145,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -171,7 +175,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/json", "application/xml" }
)
@ -180,6 +184,7 @@ public interface PetApi {
);
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -208,7 +213,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -217,6 +222,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -250,7 +256,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -260,6 +266,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -283,7 +290,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = "application/x-www-form-urlencoded"
)
@ -294,6 +301,7 @@ public interface PetApi {
);
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -319,7 +327,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@ -40,6 +40,7 @@ import jakarta.annotation.Generated;
@Tag(name = "store", description = "Access to Petstore orders")
public interface StoreApi {
public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
/**
* DELETE /store/order/{orderId} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -60,7 +61,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{orderId}"
value = StoreApi.PATH_DELETE_ORDER
)
ResponseEntity<Void> deleteOrder(
@ -68,6 +69,7 @@ public interface StoreApi {
);
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -90,7 +92,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -99,6 +101,7 @@ public interface StoreApi {
);
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
/**
* GET /store/order/{orderId} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -124,7 +127,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -133,6 +136,7 @@ public interface StoreApi {
);
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -156,7 +160,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@ -40,6 +40,7 @@ import jakarta.annotation.Generated;
@Tag(name = "user", description = "Operations about user")
public interface UserApi {
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -61,7 +62,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = "application/json"
)
@ -70,6 +71,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -91,7 +93,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = "application/json"
)
@ -100,6 +102,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -121,7 +124,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = "application/json"
)
@ -130,6 +133,7 @@ public interface UserApi {
);
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -153,7 +157,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
ResponseEntity<Void> deleteUser(
@ -161,6 +165,7 @@ public interface UserApi {
);
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -186,7 +191,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/json", "application/xml" }
)
@ -195,6 +200,7 @@ public interface UserApi {
);
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -219,7 +225,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/json", "application/xml" }
)
@ -229,6 +235,7 @@ public interface UserApi {
);
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -249,7 +256,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
ResponseEntity<Void> logoutUser(
@ -257,6 +264,7 @@ public interface UserApi {
);
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -281,7 +289,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = "application/json"
)

View File

@ -41,6 +41,7 @@ import javax.annotation.Generated;
@Tag(name = "pet", description = "Everything about your Pets")
public interface PetApi {
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -67,7 +68,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -77,6 +78,7 @@ public interface PetApi {
);
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -99,7 +101,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
CompletableFuture<ResponseEntity<Void>> deletePet(
@ -108,6 +110,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -134,7 +137,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/json", "application/xml" }
)
@ -143,6 +146,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -172,7 +176,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/json", "application/xml" }
)
@ -181,6 +185,7 @@ public interface PetApi {
);
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -209,7 +214,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -218,6 +223,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -251,7 +257,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -261,6 +267,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -284,7 +291,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = "application/x-www-form-urlencoded"
)
@ -295,6 +302,7 @@ public interface PetApi {
);
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -320,7 +328,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@ -41,6 +41,7 @@ import javax.annotation.Generated;
@Tag(name = "store", description = "Access to Petstore orders")
public interface StoreApi {
public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
/**
* DELETE /store/order/{orderId} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -61,7 +62,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{orderId}"
value = StoreApi.PATH_DELETE_ORDER
)
CompletableFuture<ResponseEntity<Void>> deleteOrder(
@ -69,6 +70,7 @@ public interface StoreApi {
);
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -91,7 +93,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -100,6 +102,7 @@ public interface StoreApi {
);
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
/**
* GET /store/order/{orderId} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -125,7 +128,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -134,6 +137,7 @@ public interface StoreApi {
);
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -157,7 +161,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@ -41,6 +41,7 @@ import javax.annotation.Generated;
@Tag(name = "user", description = "Operations about user")
public interface UserApi {
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -62,7 +63,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = "application/json"
)
@ -71,6 +72,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -92,7 +94,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = "application/json"
)
@ -101,6 +103,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -122,7 +125,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = "application/json"
)
@ -131,6 +134,7 @@ public interface UserApi {
);
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -154,7 +158,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
CompletableFuture<ResponseEntity<Void>> deleteUser(
@ -162,6 +166,7 @@ public interface UserApi {
);
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -187,7 +192,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/json", "application/xml" }
)
@ -196,6 +201,7 @@ public interface UserApi {
);
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -220,7 +226,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/json", "application/xml" }
)
@ -230,6 +236,7 @@ public interface UserApi {
);
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -250,7 +257,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
CompletableFuture<ResponseEntity<Void>> logoutUser(
@ -258,6 +265,7 @@ public interface UserApi {
);
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -282,7 +290,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = "application/json"
)

View File

@ -41,6 +41,7 @@ import javax.annotation.Generated;
@Tag(name = "Default", description = "the Default API")
public interface DefaultApi {
public static final String PATH_GET = "/thingy/{date}";
/**
* GET /thingy/{date}
*
@ -58,7 +59,7 @@ public interface DefaultApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/thingy/{date}"
value = DefaultApi.PATH_GET
)
ResponseEntity<Void> get(
@ -69,6 +70,7 @@ public interface DefaultApi {
);
public static final String PATH_UPDATE_PET_WITH_FORM = "/thingy/{date}";
/**
* POST /thingy/{date}
* update with form data
@ -86,7 +88,7 @@ public interface DefaultApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/thingy/{date}",
value = DefaultApi.PATH_UPDATE_PET_WITH_FORM,
consumes = "application/x-www-form-urlencoded"
)

View File

@ -39,6 +39,7 @@ import javax.annotation.Generated;
@Tag(name = "pet", description = "Everything about your Pets")
public interface PetApi {
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -65,7 +66,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@ -39,6 +39,7 @@ import javax.annotation.Generated;
@Tag(name = "$another-fake?", description = "the $another-fake? API")
public interface AnotherFakeApi {
public static final String PATH_CALL123TEST_SPECIAL_TAGS = "/another-fake/dummy";
/**
* PATCH /another-fake/dummy : To test special tags
* To test special tags and operation ID starting with number
@ -59,7 +60,7 @@ public interface AnotherFakeApi {
)
@RequestMapping(
method = RequestMethod.PATCH,
value = "/another-fake/dummy",
value = AnotherFakeApi.PATH_CALL123TEST_SPECIAL_TAGS,
produces = { "application/json" },
consumes = "application/json"
)

View File

@ -49,6 +49,7 @@ import javax.annotation.Generated;
@Tag(name = "fake", description = "the fake API")
public interface FakeApi {
public static final String PATH_CREATE_XML_ITEM = "/fake/create_xml_item";
/**
* POST /fake/create_xml_item : creates an XmlItem
* this route creates an XmlItem
@ -67,7 +68,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/create_xml_item",
value = FakeApi.PATH_CREATE_XML_ITEM,
consumes = "application/xml"
)
@ -76,6 +77,7 @@ public interface FakeApi {
);
public static final String PATH_FAKE_OUTER_BOOLEAN_SERIALIZE = "/fake/outer/boolean";
/**
* POST /fake/outer/boolean
* Test serialization of outer boolean types
@ -95,7 +97,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/boolean",
value = FakeApi.PATH_FAKE_OUTER_BOOLEAN_SERIALIZE,
produces = { "*/*" },
consumes = "application/json"
)
@ -105,6 +107,7 @@ public interface FakeApi {
);
public static final String PATH_FAKE_OUTER_COMPOSITE_SERIALIZE = "/fake/outer/composite";
/**
* POST /fake/outer/composite
* Test serialization of object with outer number type
@ -124,7 +127,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/composite",
value = FakeApi.PATH_FAKE_OUTER_COMPOSITE_SERIALIZE,
produces = { "*/*" },
consumes = "application/json"
)
@ -134,6 +137,7 @@ public interface FakeApi {
);
public static final String PATH_FAKE_OUTER_NUMBER_SERIALIZE = "/fake/outer/number";
/**
* POST /fake/outer/number
* Test serialization of outer number types
@ -153,7 +157,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/number",
value = FakeApi.PATH_FAKE_OUTER_NUMBER_SERIALIZE,
produces = { "*/*" },
consumes = "application/json"
)
@ -163,6 +167,7 @@ public interface FakeApi {
);
public static final String PATH_FAKE_OUTER_STRING_SERIALIZE = "/fake/outer/string";
/**
* POST /fake/outer/string
* Test serialization of outer string types
@ -182,7 +187,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/string",
value = FakeApi.PATH_FAKE_OUTER_STRING_SERIALIZE,
produces = { "*/*" },
consumes = "application/json"
)
@ -192,6 +197,7 @@ public interface FakeApi {
);
public static final String PATH_TEST_BODY_WITH_FILE_SCHEMA = "/fake/body-with-file-schema";
/**
* PUT /fake/body-with-file-schema
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
@ -209,7 +215,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/body-with-file-schema",
value = FakeApi.PATH_TEST_BODY_WITH_FILE_SCHEMA,
consumes = "application/json"
)
@ -218,6 +224,7 @@ public interface FakeApi {
);
public static final String PATH_TEST_BODY_WITH_QUERY_PARAMS = "/fake/body-with-query-params";
/**
* PUT /fake/body-with-query-params
*
@ -234,7 +241,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/body-with-query-params",
value = FakeApi.PATH_TEST_BODY_WITH_QUERY_PARAMS,
consumes = "application/json"
)
@ -244,6 +251,7 @@ public interface FakeApi {
);
public static final String PATH_TEST_CLIENT_MODEL = "/fake";
/**
* PATCH /fake : To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model
@ -264,7 +272,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake",
value = FakeApi.PATH_TEST_CLIENT_MODEL,
produces = { "application/json" },
consumes = "application/json"
)
@ -274,6 +282,7 @@ public interface FakeApi {
);
public static final String PATH_TEST_ENDPOINT_PARAMETERS = "/fake";
/**
* POST /fake : Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -310,7 +319,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake",
value = FakeApi.PATH_TEST_ENDPOINT_PARAMETERS,
consumes = "application/x-www-form-urlencoded"
)
@ -332,6 +341,7 @@ public interface FakeApi {
);
public static final String PATH_TEST_ENUM_PARAMETERS = "/fake";
/**
* GET /fake : To test enum parameters
* To test enum parameters
@ -359,7 +369,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/fake",
value = FakeApi.PATH_TEST_ENUM_PARAMETERS,
consumes = "application/x-www-form-urlencoded"
)
@ -375,6 +385,7 @@ public interface FakeApi {
);
public static final String PATH_TEST_GROUP_PARAMETERS = "/fake";
/**
* DELETE /fake : Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
@ -398,7 +409,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/fake"
value = FakeApi.PATH_TEST_GROUP_PARAMETERS
)
ResponseEntity<Void> testGroupParameters(
@ -411,6 +422,7 @@ public interface FakeApi {
);
public static final String PATH_TEST_INLINE_ADDITIONAL_PROPERTIES = "/fake/inline-additionalProperties";
/**
* POST /fake/inline-additionalProperties : test inline additionalProperties
*
@ -429,7 +441,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/inline-additionalProperties",
value = FakeApi.PATH_TEST_INLINE_ADDITIONAL_PROPERTIES,
consumes = "application/json"
)
@ -438,6 +450,7 @@ public interface FakeApi {
);
public static final String PATH_TEST_JSON_FORM_DATA = "/fake/jsonFormData";
/**
* GET /fake/jsonFormData : test json serialization of form data
*
@ -457,7 +470,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/jsonFormData",
value = FakeApi.PATH_TEST_JSON_FORM_DATA,
consumes = "application/x-www-form-urlencoded"
)
@ -467,6 +480,7 @@ public interface FakeApi {
);
public static final String PATH_TEST_NULLABLE = "/fake/nullable";
/**
* POST /fake/nullable : test nullable parent property
*
@ -485,7 +499,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/nullable",
value = FakeApi.PATH_TEST_NULLABLE,
consumes = "application/json"
)
@ -494,6 +508,7 @@ public interface FakeApi {
);
public static final String PATH_TEST_QUERY_PARAMETER_COLLECTION_FORMAT = "/fake/test-query-parameters";
/**
* PUT /fake/test-query-parameters
* To test the collection format in query parameters
@ -514,7 +529,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/test-query-parameters"
value = FakeApi.PATH_TEST_QUERY_PARAMETER_COLLECTION_FORMAT
)
ResponseEntity<Void> testQueryParameterCollectionFormat(
@ -525,6 +540,7 @@ public interface FakeApi {
);
public static final String PATH_TEST_WITH_RESULT_EXAMPLE = "/fake/response-with-example";
/**
* GET /fake/response-with-example
* This endpoint defines an example value for its response schema.
@ -543,7 +559,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/response-with-example",
value = FakeApi.PATH_TEST_WITH_RESULT_EXAMPLE,
produces = { "application/json" }
)

View File

@ -39,6 +39,7 @@ import javax.annotation.Generated;
@Tag(name = "fake_classname_tags 123#$%^", description = "the fake_classname_tags 123#$%^ API")
public interface FakeClassnameTags123Api {
public static final String PATH_TEST_CLASSNAME = "/fake_classname_test";
/**
* PATCH /fake_classname_test : To test class name in snake case
* To test class name in snake case
@ -62,7 +63,7 @@ public interface FakeClassnameTags123Api {
)
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake_classname_test",
value = FakeClassnameTags123Api.PATH_TEST_CLASSNAME,
produces = { "application/json" },
consumes = "application/json"
)

View File

@ -42,6 +42,7 @@ import javax.annotation.Generated;
@Tag(name = "pet", description = "Everything about your Pets")
public interface PetApi {
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -65,7 +66,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
consumes = "application/json"
)
@ -74,6 +75,7 @@ public interface PetApi {
);
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -98,7 +100,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
ResponseEntity<Void> deletePet(
@ -107,6 +109,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -133,7 +136,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/json", "application/xml" }
)
@ -142,6 +145,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -171,7 +175,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/json", "application/xml" }
)
@ -180,6 +184,7 @@ public interface PetApi {
);
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -208,7 +213,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -217,6 +222,7 @@ public interface PetApi {
);
public static final String PATH_RESPONSE_OBJECT_DIFFERENT_NAMES = "/fake/{petId}/response-object-different-names";
/**
* GET /fake/{petId}/response-object-different-names
*
@ -234,7 +240,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/{petId}/response-object-different-names",
value = PetApi.PATH_RESPONSE_OBJECT_DIFFERENT_NAMES,
produces = { "application/json" }
)
@ -243,6 +249,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -270,7 +277,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
consumes = "application/json"
)
@ -279,6 +286,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -302,7 +310,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = "application/x-www-form-urlencoded"
)
@ -313,6 +321,7 @@ public interface PetApi {
);
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -338,7 +347,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = "multipart/form-data"
)
@ -350,6 +359,7 @@ public interface PetApi {
);
public static final String PATH_UPLOAD_FILE_WITH_REQUIRED_FILE = "/fake/{petId}/uploadImageWithRequiredFile";
/**
* POST /fake/{petId}/uploadImageWithRequiredFile : uploads an image (required)
*
@ -375,7 +385,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/{petId}/uploadImageWithRequiredFile",
value = PetApi.PATH_UPLOAD_FILE_WITH_REQUIRED_FILE,
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@ -40,6 +40,7 @@ import javax.annotation.Generated;
@Tag(name = "store", description = "Access to Petstore orders")
public interface StoreApi {
public static final String PATH_DELETE_ORDER = "/store/order/{order_id}";
/**
* DELETE /store/order/{order_id} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -60,7 +61,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{order_id}"
value = StoreApi.PATH_DELETE_ORDER
)
ResponseEntity<Void> deleteOrder(
@ -68,6 +69,7 @@ public interface StoreApi {
);
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -90,7 +92,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -99,6 +101,7 @@ public interface StoreApi {
);
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{order_id}";
/**
* GET /store/order/{order_id} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -124,7 +127,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{order_id}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -133,6 +136,7 @@ public interface StoreApi {
);
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -156,7 +160,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@ -40,6 +40,7 @@ import javax.annotation.Generated;
@Tag(name = "user", description = "Operations about user")
public interface UserApi {
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -58,7 +59,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = "application/json"
)
@ -67,6 +68,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -85,7 +87,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = "application/json"
)
@ -94,6 +96,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -112,7 +115,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = "application/json"
)
@ -121,6 +124,7 @@ public interface UserApi {
);
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -141,7 +145,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
ResponseEntity<Void> deleteUser(
@ -149,6 +153,7 @@ public interface UserApi {
);
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -174,7 +179,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/json", "application/xml" }
)
@ -183,6 +188,7 @@ public interface UserApi {
);
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -207,7 +213,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/json", "application/xml" }
)
@ -217,6 +223,7 @@ public interface UserApi {
);
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -234,7 +241,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
ResponseEntity<Void> logoutUser(
@ -242,6 +249,7 @@ public interface UserApi {
);
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -263,7 +271,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = "application/json"
)

View File

@ -42,6 +42,7 @@ import javax.annotation.Generated;
@Tag(name = "pet", description = "Everything about your Pets")
public interface PetApi {
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -61,7 +62,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
consumes = "application/json"
)
@ -70,6 +71,7 @@ public interface PetApi {
);
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -90,7 +92,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
ResponseEntity<Void> deletePet(
@ -99,6 +101,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -125,7 +128,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/json", "application/xml" }
)
@ -135,6 +138,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -165,7 +169,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/json", "application/xml" }
)
@ -176,6 +180,7 @@ public interface PetApi {
);
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -204,7 +209,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -213,6 +218,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -236,7 +242,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
consumes = "application/json"
)
@ -245,6 +251,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -266,7 +273,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = "application/x-www-form-urlencoded"
)
@ -277,6 +284,7 @@ public interface PetApi {
);
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -300,7 +308,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@ -40,6 +40,7 @@ import javax.annotation.Generated;
@Tag(name = "store", description = "Access to Petstore orders")
public interface StoreApi {
public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
/**
* DELETE /store/order/{orderId} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -60,7 +61,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{orderId}"
value = StoreApi.PATH_DELETE_ORDER
)
ResponseEntity<Void> deleteOrder(
@ -68,6 +69,7 @@ public interface StoreApi {
);
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -90,7 +92,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -99,6 +101,7 @@ public interface StoreApi {
);
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
/**
* GET /store/order/{orderId} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -124,7 +127,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -133,6 +136,7 @@ public interface StoreApi {
);
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -154,7 +158,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/json", "application/xml" }
)

View File

@ -40,6 +40,7 @@ import javax.annotation.Generated;
@Tag(name = "user", description = "Operations about user")
public interface UserApi {
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -58,7 +59,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user"
value = UserApi.PATH_CREATE_USER
)
ResponseEntity<Void> createUser(
@ -66,6 +67,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -82,7 +84,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray"
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT
)
ResponseEntity<Void> createUsersWithArrayInput(
@ -90,6 +92,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -106,7 +109,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList"
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT
)
ResponseEntity<Void> createUsersWithListInput(
@ -114,6 +117,7 @@ public interface UserApi {
);
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -134,7 +138,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
ResponseEntity<Void> deleteUser(
@ -142,6 +146,7 @@ public interface UserApi {
);
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -165,7 +170,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/json", "application/xml" }
)
@ -174,6 +179,7 @@ public interface UserApi {
);
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -196,7 +202,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/json", "application/xml" }
)
@ -206,6 +212,7 @@ public interface UserApi {
);
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -221,7 +228,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
ResponseEntity<Void> logoutUser(
@ -229,6 +236,7 @@ public interface UserApi {
);
public static final String PATH_LOGOUT_USER_OPTIONS = "/user/logout";
/**
* OPTIONS /user/logout : logoutUserOptions
*
@ -244,7 +252,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.OPTIONS,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER_OPTIONS
)
ResponseEntity<Void> logoutUserOptions(
@ -252,6 +260,7 @@ public interface UserApi {
);
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -273,7 +282,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}"
value = UserApi.PATH_UPDATE_USER
)
ResponseEntity<Void> updateUser(

View File

@ -40,6 +40,7 @@ import javax.annotation.Generated;
@Tag(name = "pet", description = "Everything about your Pets")
public interface PetApi {
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -66,7 +67,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -76,6 +77,7 @@ public interface PetApi {
);
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -98,7 +100,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
ResponseEntity<Void> deletePet(
@ -107,6 +109,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -133,7 +136,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/json", "application/xml" }
)
@ -142,6 +145,7 @@ public interface PetApi {
);
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -171,7 +175,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/json", "application/xml" }
)
@ -180,6 +184,7 @@ public interface PetApi {
);
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -208,7 +213,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -217,6 +222,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -250,7 +256,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -260,6 +266,7 @@ public interface PetApi {
);
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -283,7 +290,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = "application/x-www-form-urlencoded"
)
@ -294,6 +301,7 @@ public interface PetApi {
);
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -319,7 +327,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@ -40,6 +40,7 @@ import javax.annotation.Generated;
@Tag(name = "store", description = "Access to Petstore orders")
public interface StoreApi {
public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
/**
* DELETE /store/order/{orderId} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -60,7 +61,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{orderId}"
value = StoreApi.PATH_DELETE_ORDER
)
ResponseEntity<Void> deleteOrder(
@ -68,6 +69,7 @@ public interface StoreApi {
);
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -90,7 +92,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -99,6 +101,7 @@ public interface StoreApi {
);
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
/**
* GET /store/order/{orderId} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -124,7 +127,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -133,6 +136,7 @@ public interface StoreApi {
);
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -156,7 +160,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@ -40,6 +40,7 @@ import javax.annotation.Generated;
@Tag(name = "user", description = "Operations about user")
public interface UserApi {
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -61,7 +62,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = "application/json"
)
@ -70,6 +71,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -91,7 +93,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = "application/json"
)
@ -100,6 +102,7 @@ public interface UserApi {
);
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -121,7 +124,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = "application/json"
)
@ -130,6 +133,7 @@ public interface UserApi {
);
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -153,7 +157,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
ResponseEntity<Void> deleteUser(
@ -161,6 +165,7 @@ public interface UserApi {
);
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -186,7 +191,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/json", "application/xml" }
)
@ -195,6 +200,7 @@ public interface UserApi {
);
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -219,7 +225,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/json", "application/xml" }
)
@ -229,6 +235,7 @@ public interface UserApi {
);
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -249,7 +256,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
ResponseEntity<Void> logoutUser(
@ -257,6 +264,7 @@ public interface UserApi {
);
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -281,7 +289,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = "application/json"
)

View File

@ -40,6 +40,7 @@ import javax.annotation.Generated;
@Tag(name = "pet", description = "Everything about your Pets")
public interface PetApi {
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -66,7 +67,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -76,6 +77,7 @@ public interface PetApi {
) throws Exception;
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -98,7 +100,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
ResponseEntity<Void> deletePet(
@ -107,6 +109,7 @@ public interface PetApi {
) throws Exception;
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -133,7 +136,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/json", "application/xml" }
)
@ -142,6 +145,7 @@ public interface PetApi {
) throws Exception;
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -171,7 +175,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/json", "application/xml" }
)
@ -180,6 +184,7 @@ public interface PetApi {
) throws Exception;
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -208,7 +213,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -217,6 +222,7 @@ public interface PetApi {
) throws Exception;
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -250,7 +256,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -260,6 +266,7 @@ public interface PetApi {
) throws Exception;
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -283,7 +290,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = "application/x-www-form-urlencoded"
)
@ -294,6 +301,7 @@ public interface PetApi {
) throws Exception;
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -319,7 +327,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@ -40,6 +40,7 @@ import javax.annotation.Generated;
@Tag(name = "store", description = "Access to Petstore orders")
public interface StoreApi {
public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
/**
* DELETE /store/order/{orderId} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -60,7 +61,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{orderId}"
value = StoreApi.PATH_DELETE_ORDER
)
ResponseEntity<Void> deleteOrder(
@ -68,6 +69,7 @@ public interface StoreApi {
) throws Exception;
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -90,7 +92,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -99,6 +101,7 @@ public interface StoreApi {
) throws Exception;
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
/**
* GET /store/order/{orderId} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -124,7 +127,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -133,6 +136,7 @@ public interface StoreApi {
) throws Exception;
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -156,7 +160,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@ -40,6 +40,7 @@ import javax.annotation.Generated;
@Tag(name = "user", description = "Operations about user")
public interface UserApi {
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -61,7 +62,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = "application/json"
)
@ -70,6 +71,7 @@ public interface UserApi {
) throws Exception;
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -91,7 +93,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = "application/json"
)
@ -100,6 +102,7 @@ public interface UserApi {
) throws Exception;
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -121,7 +124,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = "application/json"
)
@ -130,6 +133,7 @@ public interface UserApi {
) throws Exception;
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -153,7 +157,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
ResponseEntity<Void> deleteUser(
@ -161,6 +165,7 @@ public interface UserApi {
) throws Exception;
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -186,7 +191,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/json", "application/xml" }
)
@ -195,6 +200,7 @@ public interface UserApi {
) throws Exception;
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -219,7 +225,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/json", "application/xml" }
)
@ -229,6 +235,7 @@ public interface UserApi {
) throws Exception;
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -249,7 +256,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
ResponseEntity<Void> logoutUser(
@ -257,6 +264,7 @@ public interface UserApi {
) throws Exception;
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -281,7 +289,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = "application/json"
)

View File

@ -44,6 +44,7 @@ public interface PetApi {
return Optional.empty();
}
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -70,7 +71,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -97,6 +98,7 @@ public interface PetApi {
}
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -119,7 +121,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
default ResponseEntity<Void> deletePet(
@ -131,6 +133,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -157,7 +160,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/json", "application/xml" }
)
@ -183,6 +186,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -212,7 +216,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/json", "application/xml" }
)
@ -238,6 +242,7 @@ public interface PetApi {
}
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -266,7 +271,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -292,6 +297,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -325,7 +331,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)
@ -352,6 +358,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -375,7 +382,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = "application/x-www-form-urlencoded"
)
@ -389,6 +396,7 @@ public interface PetApi {
}
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -414,7 +422,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = "multipart/form-data"
)

View File

@ -44,6 +44,7 @@ public interface StoreApi {
return Optional.empty();
}
public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
/**
* DELETE /store/order/{orderId} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -64,7 +65,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{orderId}"
value = StoreApi.PATH_DELETE_ORDER
)
default ResponseEntity<Void> deleteOrder(
@ -75,6 +76,7 @@ public interface StoreApi {
}
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -97,7 +99,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -109,6 +111,7 @@ public interface StoreApi {
}
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
/**
* GET /store/order/{orderId} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -134,7 +137,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/json", "application/xml" }
)
@ -160,6 +163,7 @@ public interface StoreApi {
}
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -183,7 +187,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/json", "application/xml" },
consumes = "application/json"
)

View File

@ -44,6 +44,7 @@ public interface UserApi {
return Optional.empty();
}
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -65,7 +66,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = "application/json"
)
@ -77,6 +78,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -98,7 +100,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = "application/json"
)
@ -110,6 +112,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -131,7 +134,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = "application/json"
)
@ -143,6 +146,7 @@ public interface UserApi {
}
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -166,7 +170,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
default ResponseEntity<Void> deleteUser(
@ -177,6 +181,7 @@ public interface UserApi {
}
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -202,7 +207,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/json", "application/xml" }
)
@ -228,6 +233,7 @@ public interface UserApi {
}
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -252,7 +258,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/json", "application/xml" }
)
@ -265,6 +271,7 @@ public interface UserApi {
}
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -285,7 +292,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
default ResponseEntity<Void> logoutUser(
@ -296,6 +303,7 @@ public interface UserApi {
}
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -320,7 +328,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = "application/json"
)

View File

@ -44,6 +44,7 @@ public interface BarApi {
return Optional.empty();
}
public static final String PATH_CREATE_BAR = "/bar";
/**
* POST /bar : Create a Bar
*
@ -62,7 +63,7 @@ public interface BarApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/bar",
value = BarApi.PATH_CREATE_BAR,
produces = { "application/json" },
consumes = { "application/json" }
)

View File

@ -44,6 +44,7 @@ public interface FooApi {
return Optional.empty();
}
public static final String PATH_CREATE_FOO = "/foo";
/**
* POST /foo : Create a Foo
*
@ -62,7 +63,7 @@ public interface FooApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/foo",
value = FooApi.PATH_CREATE_FOO,
produces = { "application/json" },
consumes = { "application/json;charset=utf-8" }
)
@ -84,6 +85,7 @@ public interface FooApi {
}
public static final String PATH_GET_ALL_FOOS = "/foo";
/**
* GET /foo : GET all Foos
*
@ -101,7 +103,7 @@ public interface FooApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/foo",
value = FooApi.PATH_GET_ALL_FOOS,
produces = { "application/json;charset=utf-8" }
)

View File

@ -44,6 +44,7 @@ public interface BarApi {
return Optional.empty();
}
public static final String PATH_CREATE_BAR = "/bar";
/**
* POST /bar : Create a Bar
*
@ -62,7 +63,7 @@ public interface BarApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/bar",
value = BarApi.PATH_CREATE_BAR,
produces = { "application/json" },
consumes = { "application/json" }
)

View File

@ -44,6 +44,7 @@ public interface FooApi {
return Optional.empty();
}
public static final String PATH_CREATE_FOO = "/foo";
/**
* POST /foo : Create a Foo
*
@ -62,7 +63,7 @@ public interface FooApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/foo",
value = FooApi.PATH_CREATE_FOO,
produces = { "application/json" },
consumes = { "application/json;charset=utf-8" }
)
@ -84,6 +85,7 @@ public interface FooApi {
}
public static final String PATH_GET_ALL_FOOS = "/foo";
/**
* GET /foo : GET all Foos
*
@ -101,7 +103,7 @@ public interface FooApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/foo",
value = FooApi.PATH_GET_ALL_FOOS,
produces = { "application/json;charset=utf-8" }
)

View File

@ -44,6 +44,7 @@ public interface PetApi {
return Optional.empty();
}
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -70,7 +71,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
produces = { "application/xml", "application/json" },
consumes = { "application/json", "application/xml" }
)
@ -97,6 +98,7 @@ public interface PetApi {
}
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -119,7 +121,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
default ResponseEntity<Void> deletePet(
@ -131,6 +133,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -157,7 +160,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/xml", "application/json" }
)
@ -183,6 +186,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -212,7 +216,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/xml", "application/json" }
)
@ -238,6 +242,7 @@ public interface PetApi {
}
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -266,7 +271,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -292,6 +297,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -325,7 +331,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
produces = { "application/xml", "application/json" },
consumes = { "application/json", "application/xml" }
)
@ -352,6 +358,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -375,7 +382,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = { "application/x-www-form-urlencoded" }
)
@ -389,6 +396,7 @@ public interface PetApi {
}
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -414,7 +422,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -44,6 +44,7 @@ public interface StoreApi {
return Optional.empty();
}
public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
/**
* DELETE /store/order/{orderId} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -64,7 +65,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{orderId}"
value = StoreApi.PATH_DELETE_ORDER
)
default ResponseEntity<Void> deleteOrder(
@ -75,6 +76,7 @@ public interface StoreApi {
}
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -97,7 +99,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -109,6 +111,7 @@ public interface StoreApi {
}
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
/**
* GET /store/order/{orderId} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -134,7 +137,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -160,6 +163,7 @@ public interface StoreApi {
}
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -183,7 +187,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/xml", "application/json" },
consumes = { "application/json" }
)

View File

@ -44,6 +44,7 @@ public interface UserApi {
return Optional.empty();
}
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -65,7 +66,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = { "application/json" }
)
@ -77,6 +78,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -98,7 +100,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = { "application/json" }
)
@ -110,6 +112,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -131,7 +134,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = { "application/json" }
)
@ -143,6 +146,7 @@ public interface UserApi {
}
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -166,7 +170,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
default ResponseEntity<Void> deleteUser(
@ -177,6 +181,7 @@ public interface UserApi {
}
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -202,7 +207,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/xml", "application/json" }
)
@ -228,6 +233,7 @@ public interface UserApi {
}
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -252,7 +258,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/xml", "application/json" }
)
@ -265,6 +271,7 @@ public interface UserApi {
}
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -285,7 +292,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
default ResponseEntity<Void> logoutUser(
@ -296,6 +303,7 @@ public interface UserApi {
}
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -320,7 +328,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = { "application/json" }
)

View File

@ -44,6 +44,7 @@ public interface PetApi {
return Optional.empty();
}
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -70,7 +71,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
produces = { "application/xml", "application/json" },
consumes = { "application/json", "application/xml" }
)
@ -97,6 +98,7 @@ public interface PetApi {
}
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -119,7 +121,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
default ResponseEntity<Void> deletePet(
@ -131,6 +133,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -157,7 +160,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/xml", "application/json" }
)
@ -183,6 +186,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -212,7 +216,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/xml", "application/json" }
)
@ -238,6 +242,7 @@ public interface PetApi {
}
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -266,7 +271,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -292,6 +297,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -325,7 +331,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
produces = { "application/xml", "application/json" },
consumes = { "application/json", "application/xml" }
)
@ -352,6 +358,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -375,7 +382,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = { "application/x-www-form-urlencoded" }
)
@ -389,6 +396,7 @@ public interface PetApi {
}
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -414,7 +422,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -44,6 +44,7 @@ public interface StoreApi {
return Optional.empty();
}
public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
/**
* DELETE /store/order/{orderId} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -64,7 +65,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{orderId}"
value = StoreApi.PATH_DELETE_ORDER
)
default ResponseEntity<Void> deleteOrder(
@ -75,6 +76,7 @@ public interface StoreApi {
}
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -97,7 +99,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -109,6 +111,7 @@ public interface StoreApi {
}
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
/**
* GET /store/order/{orderId} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -134,7 +137,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -160,6 +163,7 @@ public interface StoreApi {
}
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -183,7 +187,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/xml", "application/json" },
consumes = { "application/json" }
)

View File

@ -44,6 +44,7 @@ public interface UserApi {
return Optional.empty();
}
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -65,7 +66,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = { "application/json" }
)
@ -77,6 +78,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -98,7 +100,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = { "application/json" }
)
@ -110,6 +112,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -131,7 +134,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = { "application/json" }
)
@ -143,6 +146,7 @@ public interface UserApi {
}
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -166,7 +170,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
default ResponseEntity<Void> deleteUser(
@ -177,6 +181,7 @@ public interface UserApi {
}
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -202,7 +207,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/xml", "application/json" }
)
@ -228,6 +233,7 @@ public interface UserApi {
}
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -252,7 +258,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/xml", "application/json" }
)
@ -265,6 +271,7 @@ public interface UserApi {
}
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -285,7 +292,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
default ResponseEntity<Void> logoutUser(
@ -296,6 +303,7 @@ public interface UserApi {
}
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -320,7 +328,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = { "application/json" }
)

View File

@ -39,6 +39,7 @@ public interface AnotherFakeApi {
return new AnotherFakeApiDelegate() {};
}
public static final String PATH_CALL123TEST_SPECIAL_TAGS = "/another-fake/dummy";
/**
* PATCH /another-fake/dummy : To test special tags
* To test special tags and operation ID starting with number
@ -59,7 +60,7 @@ public interface AnotherFakeApi {
)
@RequestMapping(
method = RequestMethod.PATCH,
value = "/another-fake/dummy",
value = AnotherFakeApi.PATH_CALL123TEST_SPECIAL_TAGS,
produces = { "application/json" },
consumes = { "application/json" }
)

View File

@ -51,6 +51,7 @@ public interface FakeApi {
return new FakeApiDelegate() {};
}
public static final String PATH_CREATE_XML_ITEM = "/fake/create_xml_item";
/**
* POST /fake/create_xml_item : creates an XmlItem
* this route creates an XmlItem
@ -69,7 +70,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/create_xml_item",
value = FakeApi.PATH_CREATE_XML_ITEM,
consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" }
)
@ -80,6 +81,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_BOOLEAN_SERIALIZE = "/fake/outer/boolean";
/**
* POST /fake/outer/boolean
* Test serialization of outer boolean types
@ -99,7 +101,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/boolean",
value = FakeApi.PATH_FAKE_OUTER_BOOLEAN_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -111,6 +113,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_COMPOSITE_SERIALIZE = "/fake/outer/composite";
/**
* POST /fake/outer/composite
* Test serialization of object with outer number type
@ -130,7 +133,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/composite",
value = FakeApi.PATH_FAKE_OUTER_COMPOSITE_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -142,6 +145,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_NUMBER_SERIALIZE = "/fake/outer/number";
/**
* POST /fake/outer/number
* Test serialization of outer number types
@ -161,7 +165,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/number",
value = FakeApi.PATH_FAKE_OUTER_NUMBER_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -173,6 +177,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_STRING_SERIALIZE = "/fake/outer/string";
/**
* POST /fake/outer/string
* Test serialization of outer string types
@ -192,7 +197,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/string",
value = FakeApi.PATH_FAKE_OUTER_STRING_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -204,6 +209,7 @@ public interface FakeApi {
}
public static final String PATH_RESPONSE_OBJECT_DIFFERENT_NAMES = "/fake/{petId}/response-object-different-names";
/**
* GET /fake/{petId}/response-object-different-names
*
@ -221,7 +227,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/{petId}/response-object-different-names",
value = FakeApi.PATH_RESPONSE_OBJECT_DIFFERENT_NAMES,
produces = { "application/json" }
)
@ -232,6 +238,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_BODY_WITH_FILE_SCHEMA = "/fake/body-with-file-schema";
/**
* PUT /fake/body-with-file-schema
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
@ -249,7 +256,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/body-with-file-schema",
value = FakeApi.PATH_TEST_BODY_WITH_FILE_SCHEMA,
consumes = { "application/json" }
)
@ -260,6 +267,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_BODY_WITH_QUERY_PARAMS = "/fake/body-with-query-params";
/**
* PUT /fake/body-with-query-params
*
@ -276,7 +284,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/body-with-query-params",
value = FakeApi.PATH_TEST_BODY_WITH_QUERY_PARAMS,
consumes = { "application/json" }
)
@ -288,6 +296,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_CLIENT_MODEL = "/fake";
/**
* PATCH /fake : To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model
@ -308,7 +317,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake",
value = FakeApi.PATH_TEST_CLIENT_MODEL,
produces = { "application/json" },
consumes = { "application/json" }
)
@ -320,6 +329,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_ENDPOINT_PARAMETERS = "/fake";
/**
* POST /fake : Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -356,7 +366,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake",
value = FakeApi.PATH_TEST_ENDPOINT_PARAMETERS,
consumes = { "application/x-www-form-urlencoded" }
)
@ -380,6 +390,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_ENUM_PARAMETERS = "/fake";
/**
* GET /fake : To test enum parameters
* To test enum parameters
@ -407,7 +418,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/fake",
value = FakeApi.PATH_TEST_ENUM_PARAMETERS,
consumes = { "application/x-www-form-urlencoded" }
)
@ -425,6 +436,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_GROUP_PARAMETERS = "/fake";
/**
* DELETE /fake : Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
@ -448,7 +460,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/fake"
value = FakeApi.PATH_TEST_GROUP_PARAMETERS
)
default ResponseEntity<Void> testGroupParameters(
@ -463,6 +475,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_INLINE_ADDITIONAL_PROPERTIES = "/fake/inline-additionalProperties";
/**
* POST /fake/inline-additionalProperties : test inline additionalProperties
*
@ -481,7 +494,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/inline-additionalProperties",
value = FakeApi.PATH_TEST_INLINE_ADDITIONAL_PROPERTIES,
consumes = { "application/json" }
)
@ -492,6 +505,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_JSON_FORM_DATA = "/fake/jsonFormData";
/**
* GET /fake/jsonFormData : test json serialization of form data
*
@ -511,7 +525,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/jsonFormData",
value = FakeApi.PATH_TEST_JSON_FORM_DATA,
consumes = { "application/x-www-form-urlencoded" }
)
@ -523,6 +537,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_NULLABLE = "/fake/nullable";
/**
* POST /fake/nullable : test nullable parent property
*
@ -541,7 +556,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/nullable",
value = FakeApi.PATH_TEST_NULLABLE,
consumes = { "application/json" }
)
@ -552,6 +567,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_QUERY_PARAMETER_COLLECTION_FORMAT = "/fake/test-query-parameters";
/**
* PUT /fake/test-query-parameters
* To test the collection format in query parameters
@ -572,7 +588,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/test-query-parameters"
value = FakeApi.PATH_TEST_QUERY_PARAMETER_COLLECTION_FORMAT
)
default ResponseEntity<Void> testQueryParameterCollectionFormat(
@ -585,6 +601,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_WITH_RESULT_EXAMPLE = "/fake/response-with-example";
/**
* GET /fake/response-with-example
* This endpoint defines an example value for its response schema.
@ -603,7 +620,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/response-with-example",
value = FakeApi.PATH_TEST_WITH_RESULT_EXAMPLE,
produces = { "application/json" }
)
@ -614,6 +631,7 @@ public interface FakeApi {
}
public static final String PATH_UPLOAD_FILE_WITH_REQUIRED_FILE = "/fake/{petId}/uploadImageWithRequiredFile";
/**
* POST /fake/{petId}/uploadImageWithRequiredFile : uploads an image (required)
*
@ -639,7 +657,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/{petId}/uploadImageWithRequiredFile",
value = FakeApi.PATH_UPLOAD_FILE_WITH_REQUIRED_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -39,6 +39,7 @@ public interface FakeClassnameTestApi {
return new FakeClassnameTestApiDelegate() {};
}
public static final String PATH_TEST_CLASSNAME = "/fake_classname_test";
/**
* PATCH /fake_classname_test : To test class name in snake case
* To test class name in snake case
@ -62,7 +63,7 @@ public interface FakeClassnameTestApi {
)
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake_classname_test",
value = FakeClassnameTestApi.PATH_TEST_CLASSNAME,
produces = { "application/json" },
consumes = { "application/json" }
)

View File

@ -41,6 +41,7 @@ public interface PetApi {
return new PetApiDelegate() {};
}
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -64,7 +65,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
consumes = { "application/json", "application/xml" }
)
@ -75,6 +76,7 @@ public interface PetApi {
}
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -99,7 +101,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
default ResponseEntity<Void> deletePet(
@ -110,6 +112,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -136,7 +139,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/xml", "application/json" }
)
@ -147,6 +150,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -176,7 +180,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/xml", "application/json" }
)
@ -187,6 +191,7 @@ public interface PetApi {
}
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -215,7 +220,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -226,6 +231,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -253,7 +259,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
consumes = { "application/json", "application/xml" }
)
@ -264,6 +270,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -287,7 +294,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = { "application/x-www-form-urlencoded" }
)
@ -300,6 +307,7 @@ public interface PetApi {
}
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -325,7 +333,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -40,6 +40,7 @@ public interface StoreApi {
return new StoreApiDelegate() {};
}
public static final String PATH_DELETE_ORDER = "/store/order/{order_id}";
/**
* DELETE /store/order/{order_id} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -60,7 +61,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{order_id}"
value = StoreApi.PATH_DELETE_ORDER
)
default ResponseEntity<Void> deleteOrder(
@ -70,6 +71,7 @@ public interface StoreApi {
}
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -92,7 +94,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -103,6 +105,7 @@ public interface StoreApi {
}
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{order_id}";
/**
* GET /store/order/{order_id} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -128,7 +131,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{order_id}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -139,6 +142,7 @@ public interface StoreApi {
}
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -162,7 +166,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/xml", "application/json" },
consumes = { "application/json" }
)

View File

@ -40,6 +40,7 @@ public interface UserApi {
return new UserApiDelegate() {};
}
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -58,7 +59,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = { "application/json" }
)
@ -69,6 +70,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -87,7 +89,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = { "application/json" }
)
@ -98,6 +100,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -116,7 +119,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = { "application/json" }
)
@ -127,6 +130,7 @@ public interface UserApi {
}
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -147,7 +151,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
default ResponseEntity<Void> deleteUser(
@ -157,6 +161,7 @@ public interface UserApi {
}
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -182,7 +187,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/xml", "application/json" }
)
@ -193,6 +198,7 @@ public interface UserApi {
}
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -217,7 +223,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/xml", "application/json" }
)
@ -229,6 +235,7 @@ public interface UserApi {
}
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -246,7 +253,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
default ResponseEntity<Void> logoutUser(
@ -256,6 +263,7 @@ public interface UserApi {
}
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -277,7 +285,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = { "application/json" }
)

View File

@ -43,6 +43,7 @@ public interface AnotherFakeApi {
return Optional.empty();
}
public static final String PATH_CALL123TEST_SPECIAL_TAGS = "/another-fake/dummy";
/**
* PATCH /another-fake/dummy : To test special tags
* To test special tags and operation ID starting with number
@ -63,7 +64,7 @@ public interface AnotherFakeApi {
)
@RequestMapping(
method = RequestMethod.PATCH,
value = "/another-fake/dummy",
value = AnotherFakeApi.PATH_CALL123TEST_SPECIAL_TAGS,
produces = { "application/json" },
consumes = { "application/json" }
)

View File

@ -55,6 +55,7 @@ public interface FakeApi {
return Optional.empty();
}
public static final String PATH_CREATE_XML_ITEM = "/fake/create_xml_item";
/**
* POST /fake/create_xml_item : creates an XmlItem
* this route creates an XmlItem
@ -73,7 +74,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/create_xml_item",
value = FakeApi.PATH_CREATE_XML_ITEM,
consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" }
)
@ -85,6 +86,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_BOOLEAN_SERIALIZE = "/fake/outer/boolean";
/**
* POST /fake/outer/boolean
* Test serialization of outer boolean types
@ -104,7 +106,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/boolean",
value = FakeApi.PATH_FAKE_OUTER_BOOLEAN_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -117,6 +119,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_COMPOSITE_SERIALIZE = "/fake/outer/composite";
/**
* POST /fake/outer/composite
* Test serialization of object with outer number type
@ -136,7 +139,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/composite",
value = FakeApi.PATH_FAKE_OUTER_COMPOSITE_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -158,6 +161,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_NUMBER_SERIALIZE = "/fake/outer/number";
/**
* POST /fake/outer/number
* Test serialization of outer number types
@ -177,7 +181,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/number",
value = FakeApi.PATH_FAKE_OUTER_NUMBER_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -190,6 +194,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_STRING_SERIALIZE = "/fake/outer/string";
/**
* POST /fake/outer/string
* Test serialization of outer string types
@ -209,7 +214,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/string",
value = FakeApi.PATH_FAKE_OUTER_STRING_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -222,6 +227,7 @@ public interface FakeApi {
}
public static final String PATH_RESPONSE_OBJECT_DIFFERENT_NAMES = "/fake/{petId}/response-object-different-names";
/**
* GET /fake/{petId}/response-object-different-names
*
@ -239,7 +245,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/{petId}/response-object-different-names",
value = FakeApi.PATH_RESPONSE_OBJECT_DIFFERENT_NAMES,
produces = { "application/json" }
)
@ -260,6 +266,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_BODY_WITH_FILE_SCHEMA = "/fake/body-with-file-schema";
/**
* PUT /fake/body-with-file-schema
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
@ -277,7 +284,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/body-with-file-schema",
value = FakeApi.PATH_TEST_BODY_WITH_FILE_SCHEMA,
consumes = { "application/json" }
)
@ -289,6 +296,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_BODY_WITH_QUERY_PARAMS = "/fake/body-with-query-params";
/**
* PUT /fake/body-with-query-params
*
@ -305,7 +313,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/body-with-query-params",
value = FakeApi.PATH_TEST_BODY_WITH_QUERY_PARAMS,
consumes = { "application/json" }
)
@ -318,6 +326,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_CLIENT_MODEL = "/fake";
/**
* PATCH /fake : To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model
@ -338,7 +347,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake",
value = FakeApi.PATH_TEST_CLIENT_MODEL,
produces = { "application/json" },
consumes = { "application/json" }
)
@ -360,6 +369,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_ENDPOINT_PARAMETERS = "/fake";
/**
* POST /fake : Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -396,7 +406,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake",
value = FakeApi.PATH_TEST_ENDPOINT_PARAMETERS,
consumes = { "application/x-www-form-urlencoded" }
)
@ -421,6 +431,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_ENUM_PARAMETERS = "/fake";
/**
* GET /fake : To test enum parameters
* To test enum parameters
@ -450,7 +461,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/fake",
value = FakeApi.PATH_TEST_ENUM_PARAMETERS,
consumes = { "application/x-www-form-urlencoded" }
)
@ -467,6 +478,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_GROUP_PARAMETERS = "/fake";
/**
* DELETE /fake : Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
@ -492,7 +504,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/fake"
value = FakeApi.PATH_TEST_GROUP_PARAMETERS
)
default ResponseEntity<Void> testGroupParameters(
@ -506,6 +518,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_INLINE_ADDITIONAL_PROPERTIES = "/fake/inline-additionalProperties";
/**
* POST /fake/inline-additionalProperties : test inline additionalProperties
*
@ -524,7 +537,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/inline-additionalProperties",
value = FakeApi.PATH_TEST_INLINE_ADDITIONAL_PROPERTIES,
consumes = { "application/json" }
)
@ -536,6 +549,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_JSON_FORM_DATA = "/fake/jsonFormData";
/**
* GET /fake/jsonFormData : test json serialization of form data
*
@ -555,7 +569,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/jsonFormData",
value = FakeApi.PATH_TEST_JSON_FORM_DATA,
consumes = { "application/x-www-form-urlencoded" }
)
@ -568,6 +582,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_NULLABLE = "/fake/nullable";
/**
* POST /fake/nullable : test nullable parent property
*
@ -586,7 +601,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/nullable",
value = FakeApi.PATH_TEST_NULLABLE,
consumes = { "application/json" }
)
@ -598,6 +613,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_QUERY_PARAMETER_COLLECTION_FORMAT = "/fake/test-query-parameters";
/**
* PUT /fake/test-query-parameters
* To test the collection format in query parameters
@ -618,7 +634,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/test-query-parameters"
value = FakeApi.PATH_TEST_QUERY_PARAMETER_COLLECTION_FORMAT
)
default ResponseEntity<Void> testQueryParameterCollectionFormat(
@ -632,6 +648,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_WITH_RESULT_EXAMPLE = "/fake/response-with-example";
/**
* GET /fake/response-with-example
* This endpoint defines an example value for its response schema.
@ -650,7 +667,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/response-with-example",
value = FakeApi.PATH_TEST_WITH_RESULT_EXAMPLE,
produces = { "application/json" }
)
@ -671,6 +688,7 @@ public interface FakeApi {
}
public static final String PATH_UPLOAD_FILE_WITH_REQUIRED_FILE = "/fake/{petId}/uploadImageWithRequiredFile";
/**
* POST /fake/{petId}/uploadImageWithRequiredFile : uploads an image (required)
*
@ -696,7 +714,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/{petId}/uploadImageWithRequiredFile",
value = FakeApi.PATH_UPLOAD_FILE_WITH_REQUIRED_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -43,6 +43,7 @@ public interface FakeClassnameTestApi {
return Optional.empty();
}
public static final String PATH_TEST_CLASSNAME = "/fake_classname_test";
/**
* PATCH /fake_classname_test : To test class name in snake case
* To test class name in snake case
@ -66,7 +67,7 @@ public interface FakeClassnameTestApi {
)
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake_classname_test",
value = FakeClassnameTestApi.PATH_TEST_CLASSNAME,
produces = { "application/json" },
consumes = { "application/json" }
)

View File

@ -45,6 +45,7 @@ public interface PetApi {
return Optional.empty();
}
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -68,7 +69,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
consumes = { "application/json", "application/xml" }
)
@ -80,6 +81,7 @@ public interface PetApi {
}
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -106,7 +108,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
default ResponseEntity<Void> deletePet(
@ -117,6 +119,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -143,7 +146,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/xml", "application/json" }
)
@ -169,6 +172,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -198,7 +202,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/xml", "application/json" }
)
@ -224,6 +228,7 @@ public interface PetApi {
}
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -252,7 +257,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -278,6 +283,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -305,7 +311,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
consumes = { "application/json", "application/xml" }
)
@ -317,6 +323,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -340,7 +347,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = { "application/x-www-form-urlencoded" }
)
@ -354,6 +361,7 @@ public interface PetApi {
}
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -379,7 +387,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -44,6 +44,7 @@ public interface StoreApi {
return Optional.empty();
}
public static final String PATH_DELETE_ORDER = "/store/order/{order_id}";
/**
* DELETE /store/order/{order_id} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -64,7 +65,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{order_id}"
value = StoreApi.PATH_DELETE_ORDER
)
default ResponseEntity<Void> deleteOrder(
@ -75,6 +76,7 @@ public interface StoreApi {
}
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -97,7 +99,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -109,6 +111,7 @@ public interface StoreApi {
}
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{order_id}";
/**
* GET /store/order/{order_id} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -134,7 +137,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{order_id}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -160,6 +163,7 @@ public interface StoreApi {
}
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -183,7 +187,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/xml", "application/json" },
consumes = { "application/json" }
)

View File

@ -44,6 +44,7 @@ public interface UserApi {
return Optional.empty();
}
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -62,7 +63,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = { "application/json" }
)
@ -74,6 +75,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -92,7 +94,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = { "application/json" }
)
@ -104,6 +106,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -122,7 +125,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = { "application/json" }
)
@ -134,6 +137,7 @@ public interface UserApi {
}
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -154,7 +158,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
default ResponseEntity<Void> deleteUser(
@ -165,6 +169,7 @@ public interface UserApi {
}
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -190,7 +195,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/xml", "application/json" }
)
@ -216,6 +221,7 @@ public interface UserApi {
}
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -240,7 +246,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/xml", "application/json" }
)
@ -253,6 +259,7 @@ public interface UserApi {
}
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -270,7 +277,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
default ResponseEntity<Void> logoutUser(
@ -281,6 +288,7 @@ public interface UserApi {
}
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -302,7 +310,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = { "application/json" }
)

View File

@ -31,6 +31,7 @@ public interface PetApi {
return Optional.empty();
}
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -41,7 +42,7 @@ public interface PetApi {
*/
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
produces = { "application/xml", "application/json" },
consumes = { "application/json", "application/xml" }
)
@ -68,6 +69,7 @@ public interface PetApi {
}
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -78,7 +80,7 @@ public interface PetApi {
*/
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
default ResponseEntity<Void> deletePet(
@ -90,6 +92,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -100,7 +103,7 @@ public interface PetApi {
*/
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/xml", "application/json" }
)
@ -126,6 +129,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -138,7 +142,7 @@ public interface PetApi {
@Deprecated
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/xml", "application/json" }
)
@ -164,6 +168,7 @@ public interface PetApi {
}
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -175,7 +180,7 @@ public interface PetApi {
*/
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -201,6 +206,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -215,7 +221,7 @@ public interface PetApi {
*/
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
produces = { "application/xml", "application/json" },
consumes = { "application/json", "application/xml" }
)
@ -242,6 +248,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -253,7 +260,7 @@ public interface PetApi {
*/
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = { "application/x-www-form-urlencoded" }
)
@ -267,6 +274,7 @@ public interface PetApi {
}
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -278,7 +286,7 @@ public interface PetApi {
*/
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -31,6 +31,7 @@ public interface StoreApi {
return Optional.empty();
}
public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
/**
* DELETE /store/order/{orderId} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -41,7 +42,7 @@ public interface StoreApi {
*/
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{orderId}"
value = StoreApi.PATH_DELETE_ORDER
)
default ResponseEntity<Void> deleteOrder(
@ -52,6 +53,7 @@ public interface StoreApi {
}
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -60,7 +62,7 @@ public interface StoreApi {
*/
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -72,6 +74,7 @@ public interface StoreApi {
}
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
/**
* GET /store/order/{orderId} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -83,7 +86,7 @@ public interface StoreApi {
*/
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -109,6 +112,7 @@ public interface StoreApi {
}
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -119,7 +123,7 @@ public interface StoreApi {
*/
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/xml", "application/json" },
consumes = { "application/json" }
)

View File

@ -31,6 +31,7 @@ public interface UserApi {
return Optional.empty();
}
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -40,7 +41,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = { "application/json" }
)
@ -52,6 +53,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -61,7 +63,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = { "application/json" }
)
@ -73,6 +75,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -82,7 +85,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = { "application/json" }
)
@ -94,6 +97,7 @@ public interface UserApi {
}
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -104,7 +108,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
default ResponseEntity<Void> deleteUser(
@ -115,6 +119,7 @@ public interface UserApi {
}
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -126,7 +131,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/xml", "application/json" }
)
@ -152,6 +157,7 @@ public interface UserApi {
}
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -163,7 +169,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/xml", "application/json" }
)
@ -176,6 +182,7 @@ public interface UserApi {
}
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -184,7 +191,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
default ResponseEntity<Void> logoutUser(
@ -195,6 +202,7 @@ public interface UserApi {
}
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -206,7 +214,7 @@ public interface UserApi {
*/
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = { "application/json" }
)

View File

@ -45,6 +45,7 @@ public interface PetApi {
return Optional.empty();
}
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -71,7 +72,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
produces = { "application/xml", "application/json" },
consumes = { "application/json", "application/xml" }
)
@ -98,6 +99,7 @@ public interface PetApi {
}
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -120,7 +122,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
default ResponseEntity<Void> deletePet(
@ -132,6 +134,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -158,7 +161,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/xml", "application/json" }
)
@ -184,6 +187,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -213,7 +217,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/xml", "application/json" }
)
@ -239,6 +243,7 @@ public interface PetApi {
}
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -267,7 +272,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -293,6 +298,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -326,7 +332,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
produces = { "application/xml", "application/json" },
consumes = { "application/json", "application/xml" }
)
@ -353,6 +359,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -376,7 +383,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = { "application/x-www-form-urlencoded" }
)
@ -390,6 +397,7 @@ public interface PetApi {
}
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -415,7 +423,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -45,6 +45,7 @@ public interface StoreApi {
return Optional.empty();
}
public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
/**
* DELETE /store/order/{orderId} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -65,7 +66,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{orderId}"
value = StoreApi.PATH_DELETE_ORDER
)
default ResponseEntity<Void> deleteOrder(
@ -76,6 +77,7 @@ public interface StoreApi {
}
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -98,7 +100,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -110,6 +112,7 @@ public interface StoreApi {
}
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
/**
* GET /store/order/{orderId} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -135,7 +138,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{orderId}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -161,6 +164,7 @@ public interface StoreApi {
}
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -184,7 +188,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/xml", "application/json" },
consumes = { "application/json" }
)

View File

@ -45,6 +45,7 @@ public interface UserApi {
return Optional.empty();
}
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -66,7 +67,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = { "application/json" }
)
@ -78,6 +79,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -99,7 +101,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = { "application/json" }
)
@ -111,6 +113,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -132,7 +135,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = { "application/json" }
)
@ -144,6 +147,7 @@ public interface UserApi {
}
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -167,7 +171,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
default ResponseEntity<Void> deleteUser(
@ -178,6 +182,7 @@ public interface UserApi {
}
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -203,7 +208,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/xml", "application/json" }
)
@ -229,6 +234,7 @@ public interface UserApi {
}
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -253,7 +259,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/xml", "application/json" }
)
@ -266,6 +272,7 @@ public interface UserApi {
}
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -286,7 +293,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
default ResponseEntity<Void> logoutUser(
@ -297,6 +304,7 @@ public interface UserApi {
}
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -321,7 +329,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = { "application/json" }
)

View File

@ -39,6 +39,7 @@ import javax.annotation.Generated;
@Tag(name = "$another-fake?", description = "the $another-fake? API")
public interface AnotherFakeApi {
public static final String PATH_CALL123TEST_SPECIAL_TAGS = "/another-fake/dummy";
/**
* PATCH /another-fake/dummy : To test special tags
* To test special tags and operation ID starting with number
@ -59,7 +60,7 @@ public interface AnotherFakeApi {
)
@RequestMapping(
method = RequestMethod.PATCH,
value = "/another-fake/dummy",
value = AnotherFakeApi.PATH_CALL123TEST_SPECIAL_TAGS,
produces = { "application/json" },
consumes = { "application/json" }
)

View File

@ -51,6 +51,7 @@ import javax.annotation.Generated;
@Tag(name = "fake", description = "the fake API")
public interface FakeApi {
public static final String PATH_CREATE_XML_ITEM = "/fake/create_xml_item";
/**
* POST /fake/create_xml_item : creates an XmlItem
* this route creates an XmlItem
@ -69,7 +70,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/create_xml_item",
value = FakeApi.PATH_CREATE_XML_ITEM,
consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" }
)
@ -78,6 +79,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_FAKE_OUTER_BOOLEAN_SERIALIZE = "/fake/outer/boolean";
/**
* POST /fake/outer/boolean
* Test serialization of outer boolean types
@ -97,7 +99,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/boolean",
value = FakeApi.PATH_FAKE_OUTER_BOOLEAN_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -107,6 +109,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_FAKE_OUTER_COMPOSITE_SERIALIZE = "/fake/outer/composite";
/**
* POST /fake/outer/composite
* Test serialization of object with outer number type
@ -126,7 +129,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/composite",
value = FakeApi.PATH_FAKE_OUTER_COMPOSITE_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -136,6 +139,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_FAKE_OUTER_NUMBER_SERIALIZE = "/fake/outer/number";
/**
* POST /fake/outer/number
* Test serialization of outer number types
@ -155,7 +159,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/number",
value = FakeApi.PATH_FAKE_OUTER_NUMBER_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -165,6 +169,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_FAKE_OUTER_STRING_SERIALIZE = "/fake/outer/string";
/**
* POST /fake/outer/string
* Test serialization of outer string types
@ -184,7 +189,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/string",
value = FakeApi.PATH_FAKE_OUTER_STRING_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -194,6 +199,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_RESPONSE_OBJECT_DIFFERENT_NAMES = "/fake/{petId}/response-object-different-names";
/**
* GET /fake/{petId}/response-object-different-names
*
@ -211,7 +217,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/{petId}/response-object-different-names",
value = FakeApi.PATH_RESPONSE_OBJECT_DIFFERENT_NAMES,
produces = { "application/json" }
)
@ -220,6 +226,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_TEST_BODY_WITH_FILE_SCHEMA = "/fake/body-with-file-schema";
/**
* PUT /fake/body-with-file-schema
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
@ -237,7 +244,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/body-with-file-schema",
value = FakeApi.PATH_TEST_BODY_WITH_FILE_SCHEMA,
consumes = { "application/json" }
)
@ -246,6 +253,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_TEST_BODY_WITH_QUERY_PARAMS = "/fake/body-with-query-params";
/**
* PUT /fake/body-with-query-params
*
@ -262,7 +270,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/body-with-query-params",
value = FakeApi.PATH_TEST_BODY_WITH_QUERY_PARAMS,
consumes = { "application/json" }
)
@ -272,6 +280,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_TEST_CLIENT_MODEL = "/fake";
/**
* PATCH /fake : To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model
@ -292,7 +301,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake",
value = FakeApi.PATH_TEST_CLIENT_MODEL,
produces = { "application/json" },
consumes = { "application/json" }
)
@ -302,6 +311,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_TEST_ENDPOINT_PARAMETERS = "/fake";
/**
* POST /fake : Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -338,7 +348,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake",
value = FakeApi.PATH_TEST_ENDPOINT_PARAMETERS,
consumes = { "application/x-www-form-urlencoded" }
)
@ -360,6 +370,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_TEST_ENUM_PARAMETERS = "/fake";
/**
* GET /fake : To test enum parameters
* To test enum parameters
@ -387,7 +398,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/fake",
value = FakeApi.PATH_TEST_ENUM_PARAMETERS,
consumes = { "application/x-www-form-urlencoded" }
)
@ -403,6 +414,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_TEST_GROUP_PARAMETERS = "/fake";
/**
* DELETE /fake : Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
@ -426,7 +438,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/fake"
value = FakeApi.PATH_TEST_GROUP_PARAMETERS
)
ResponseEntity<Void> testGroupParameters(
@ -439,6 +451,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_TEST_INLINE_ADDITIONAL_PROPERTIES = "/fake/inline-additionalProperties";
/**
* POST /fake/inline-additionalProperties : test inline additionalProperties
*
@ -457,7 +470,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/inline-additionalProperties",
value = FakeApi.PATH_TEST_INLINE_ADDITIONAL_PROPERTIES,
consumes = { "application/json" }
)
@ -466,6 +479,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_TEST_JSON_FORM_DATA = "/fake/jsonFormData";
/**
* GET /fake/jsonFormData : test json serialization of form data
*
@ -485,7 +499,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/jsonFormData",
value = FakeApi.PATH_TEST_JSON_FORM_DATA,
consumes = { "application/x-www-form-urlencoded" }
)
@ -495,6 +509,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_TEST_NULLABLE = "/fake/nullable";
/**
* POST /fake/nullable : test nullable parent property
*
@ -513,7 +528,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/nullable",
value = FakeApi.PATH_TEST_NULLABLE,
consumes = { "application/json" }
)
@ -522,6 +537,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_TEST_QUERY_PARAMETER_COLLECTION_FORMAT = "/fake/test-query-parameters";
/**
* PUT /fake/test-query-parameters
* To test the collection format in query parameters
@ -542,7 +558,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/test-query-parameters"
value = FakeApi.PATH_TEST_QUERY_PARAMETER_COLLECTION_FORMAT
)
ResponseEntity<Void> testQueryParameterCollectionFormat(
@ -553,6 +569,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_TEST_WITH_RESULT_EXAMPLE = "/fake/response-with-example";
/**
* GET /fake/response-with-example
* This endpoint defines an example value for its response schema.
@ -571,7 +588,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/response-with-example",
value = FakeApi.PATH_TEST_WITH_RESULT_EXAMPLE,
produces = { "application/json" }
)
@ -580,6 +597,7 @@ public interface FakeApi {
) throws Exception;
public static final String PATH_UPLOAD_FILE_WITH_REQUIRED_FILE = "/fake/{petId}/uploadImageWithRequiredFile";
/**
* POST /fake/{petId}/uploadImageWithRequiredFile : uploads an image (required)
*
@ -605,7 +623,7 @@ public interface FakeApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/{petId}/uploadImageWithRequiredFile",
value = FakeApi.PATH_UPLOAD_FILE_WITH_REQUIRED_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -39,6 +39,7 @@ import javax.annotation.Generated;
@Tag(name = "fake_classname_tags 123#$%^", description = "the fake_classname_tags 123#$%^ API")
public interface FakeClassnameTestApi {
public static final String PATH_TEST_CLASSNAME = "/fake_classname_test";
/**
* PATCH /fake_classname_test : To test class name in snake case
* To test class name in snake case
@ -62,7 +63,7 @@ public interface FakeClassnameTestApi {
)
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake_classname_test",
value = FakeClassnameTestApi.PATH_TEST_CLASSNAME,
produces = { "application/json" },
consumes = { "application/json" }
)

View File

@ -41,6 +41,7 @@ import javax.annotation.Generated;
@Tag(name = "pet", description = "Everything about your Pets")
public interface PetApi {
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -64,7 +65,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
consumes = { "application/json", "application/xml" }
)
@ -73,6 +74,7 @@ public interface PetApi {
) throws Exception;
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -97,7 +99,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
ResponseEntity<Void> deletePet(
@ -106,6 +108,7 @@ public interface PetApi {
) throws Exception;
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -132,7 +135,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/xml", "application/json" }
)
@ -141,6 +144,7 @@ public interface PetApi {
) throws Exception;
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -170,7 +174,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/xml", "application/json" }
)
@ -179,6 +183,7 @@ public interface PetApi {
) throws Exception;
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -207,7 +212,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -216,6 +221,7 @@ public interface PetApi {
) throws Exception;
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -243,7 +249,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
consumes = { "application/json", "application/xml" }
)
@ -252,6 +258,7 @@ public interface PetApi {
) throws Exception;
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -275,7 +282,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = { "application/x-www-form-urlencoded" }
)
@ -286,6 +293,7 @@ public interface PetApi {
) throws Exception;
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -311,7 +319,7 @@ public interface PetApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -40,6 +40,7 @@ import javax.annotation.Generated;
@Tag(name = "store", description = "Access to Petstore orders")
public interface StoreApi {
public static final String PATH_DELETE_ORDER = "/store/order/{order_id}";
/**
* DELETE /store/order/{order_id} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -60,7 +61,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{order_id}"
value = StoreApi.PATH_DELETE_ORDER
)
ResponseEntity<Void> deleteOrder(
@ -68,6 +69,7 @@ public interface StoreApi {
) throws Exception;
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -90,7 +92,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -99,6 +101,7 @@ public interface StoreApi {
) throws Exception;
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{order_id}";
/**
* GET /store/order/{order_id} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -124,7 +127,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{order_id}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -133,6 +136,7 @@ public interface StoreApi {
) throws Exception;
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -156,7 +160,7 @@ public interface StoreApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/xml", "application/json" },
consumes = { "application/json" }
)

View File

@ -40,6 +40,7 @@ import javax.annotation.Generated;
@Tag(name = "user", description = "Operations about user")
public interface UserApi {
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -58,7 +59,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = { "application/json" }
)
@ -67,6 +68,7 @@ public interface UserApi {
) throws Exception;
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -85,7 +87,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = { "application/json" }
)
@ -94,6 +96,7 @@ public interface UserApi {
) throws Exception;
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -112,7 +115,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = { "application/json" }
)
@ -121,6 +124,7 @@ public interface UserApi {
) throws Exception;
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -141,7 +145,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
ResponseEntity<Void> deleteUser(
@ -149,6 +153,7 @@ public interface UserApi {
) throws Exception;
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -174,7 +179,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/xml", "application/json" }
)
@ -183,6 +188,7 @@ public interface UserApi {
) throws Exception;
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -207,7 +213,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/xml", "application/json" }
)
@ -217,6 +223,7 @@ public interface UserApi {
) throws Exception;
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -234,7 +241,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
ResponseEntity<Void> logoutUser(
@ -242,6 +249,7 @@ public interface UserApi {
) throws Exception;
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -263,7 +271,7 @@ public interface UserApi {
)
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = { "application/json" }
)

View File

@ -43,6 +43,7 @@ public interface NullableApi {
return Optional.empty();
}
public static final String PATH_NULLABLE_TEST = "/nullable";
/**
* POST /nullable
* nullable test
@ -61,7 +62,7 @@ public interface NullableApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/nullable",
value = NullableApi.PATH_NULLABLE_TEST,
consumes = "application/json"
)

View File

@ -40,6 +40,7 @@ public interface DogsApi {
return new DogsApiDelegate() {};
}
public static final String PATH_CREATE_DOG = "/dogs";
/**
* POST /dogs : Create a dog
*
@ -75,7 +76,7 @@ public interface DogsApi {
)
@RequestMapping(
method = RequestMethod.POST,
value = "/dogs",
value = DogsApi.PATH_CREATE_DOG,
produces = { "application/json" },
consumes = { "application/json" }
)

View File

@ -32,6 +32,7 @@ public interface AnotherFakeApi {
return Optional.empty();
}
public static final String PATH_CALL123TEST_SPECIAL_TAGS = "/another-fake/dummy";
/**
* PATCH /another-fake/dummy : To test special tags
* To test special tags and operation ID starting with number
@ -51,7 +52,7 @@ public interface AnotherFakeApi {
})
@RequestMapping(
method = RequestMethod.PATCH,
value = "/another-fake/dummy",
value = AnotherFakeApi.PATH_CALL123TEST_SPECIAL_TAGS,
produces = { "application/json" },
consumes = { "application/json" }
)

View File

@ -44,6 +44,7 @@ public interface FakeApi {
return Optional.empty();
}
public static final String PATH_CREATE_XML_ITEM = "/fake/create_xml_item";
/**
* POST /fake/create_xml_item : creates an XmlItem
* this route creates an XmlItem
@ -62,7 +63,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/create_xml_item",
value = FakeApi.PATH_CREATE_XML_ITEM,
consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" }
)
@ -74,6 +75,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_BOOLEAN_SERIALIZE = "/fake/outer/boolean";
/**
* POST /fake/outer/boolean
* Test serialization of outer boolean types
@ -93,7 +95,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/boolean",
value = FakeApi.PATH_FAKE_OUTER_BOOLEAN_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -106,6 +108,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_COMPOSITE_SERIALIZE = "/fake/outer/composite";
/**
* POST /fake/outer/composite
* Test serialization of object with outer number type
@ -125,7 +128,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/composite",
value = FakeApi.PATH_FAKE_OUTER_COMPOSITE_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -147,6 +150,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_NUMBER_SERIALIZE = "/fake/outer/number";
/**
* POST /fake/outer/number
* Test serialization of outer number types
@ -166,7 +170,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/number",
value = FakeApi.PATH_FAKE_OUTER_NUMBER_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -179,6 +183,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_STRING_SERIALIZE = "/fake/outer/string";
/**
* POST /fake/outer/string
* Test serialization of outer string types
@ -198,7 +203,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/string",
value = FakeApi.PATH_FAKE_OUTER_STRING_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -211,6 +216,7 @@ public interface FakeApi {
}
public static final String PATH_RESPONSE_OBJECT_DIFFERENT_NAMES = "/fake/{petId}/response-object-different-names";
/**
* GET /fake/{petId}/response-object-different-names
*
@ -229,7 +235,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/{petId}/response-object-different-names",
value = FakeApi.PATH_RESPONSE_OBJECT_DIFFERENT_NAMES,
produces = { "application/json" }
)
@ -250,6 +256,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_BODY_WITH_FILE_SCHEMA = "/fake/body-with-file-schema";
/**
* PUT /fake/body-with-file-schema
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
@ -268,7 +275,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/body-with-file-schema",
value = FakeApi.PATH_TEST_BODY_WITH_FILE_SCHEMA,
consumes = { "application/json" }
)
@ -280,6 +287,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_BODY_WITH_QUERY_PARAMS = "/fake/body-with-query-params";
/**
* PUT /fake/body-with-query-params
*
@ -298,7 +306,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/body-with-query-params",
value = FakeApi.PATH_TEST_BODY_WITH_QUERY_PARAMS,
consumes = { "application/json" }
)
@ -311,6 +319,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_CLIENT_MODEL = "/fake";
/**
* PATCH /fake : To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model
@ -330,7 +339,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake",
value = FakeApi.PATH_TEST_CLIENT_MODEL,
produces = { "application/json" },
consumes = { "application/json" }
)
@ -352,6 +361,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_ENDPOINT_PARAMETERS = "/fake";
/**
* POST /fake : Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -388,7 +398,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake",
value = FakeApi.PATH_TEST_ENDPOINT_PARAMETERS,
consumes = { "application/x-www-form-urlencoded" }
)
@ -413,6 +423,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_ENUM_PARAMETERS = "/fake";
/**
* GET /fake : To test enum parameters
* To test enum parameters
@ -440,7 +451,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/fake",
value = FakeApi.PATH_TEST_ENUM_PARAMETERS,
consumes = { "application/x-www-form-urlencoded" }
)
@ -459,6 +470,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_GROUP_PARAMETERS = "/fake";
/**
* DELETE /fake : Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
@ -482,7 +494,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/fake"
value = FakeApi.PATH_TEST_GROUP_PARAMETERS
)
default ResponseEntity<Void> testGroupParameters(
@ -498,6 +510,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_INLINE_ADDITIONAL_PROPERTIES = "/fake/inline-additionalProperties";
/**
* POST /fake/inline-additionalProperties : test inline additionalProperties
*
@ -516,7 +529,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/inline-additionalProperties",
value = FakeApi.PATH_TEST_INLINE_ADDITIONAL_PROPERTIES,
consumes = { "application/json" }
)
@ -528,6 +541,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_JSON_FORM_DATA = "/fake/jsonFormData";
/**
* GET /fake/jsonFormData : test json serialization of form data
*
@ -547,7 +561,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/jsonFormData",
value = FakeApi.PATH_TEST_JSON_FORM_DATA,
consumes = { "application/x-www-form-urlencoded" }
)
@ -560,6 +574,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_NULLABLE = "/fake/nullable";
/**
* POST /fake/nullable : test nullable parent property
*
@ -578,7 +593,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/nullable",
value = FakeApi.PATH_TEST_NULLABLE,
consumes = { "application/json" }
)
@ -590,6 +605,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_QUERY_PARAMETER_COLLECTION_FORMAT = "/fake/test-query-parameters";
/**
* PUT /fake/test-query-parameters
* To test the collection format in query parameters
@ -611,7 +627,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/test-query-parameters"
value = FakeApi.PATH_TEST_QUERY_PARAMETER_COLLECTION_FORMAT
)
default ResponseEntity<Void> testQueryParameterCollectionFormat(
@ -625,6 +641,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_WITH_RESULT_EXAMPLE = "/fake/response-with-example";
/**
* GET /fake/response-with-example
* This endpoint defines an example value for its response schema.
@ -643,7 +660,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/response-with-example",
value = FakeApi.PATH_TEST_WITH_RESULT_EXAMPLE,
produces = { "application/json" }
)
@ -664,6 +681,7 @@ public interface FakeApi {
}
public static final String PATH_UPLOAD_FILE_WITH_REQUIRED_FILE = "/fake/{petId}/uploadImageWithRequiredFile";
/**
* POST /fake/{petId}/uploadImageWithRequiredFile : uploads an image (required)
*
@ -691,7 +709,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/{petId}/uploadImageWithRequiredFile",
value = FakeApi.PATH_UPLOAD_FILE_WITH_REQUIRED_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -32,6 +32,7 @@ public interface FakeClassnameTestApi {
return Optional.empty();
}
public static final String PATH_TEST_CLASSNAME = "/fake_classname_test";
/**
* PATCH /fake_classname_test : To test class name in snake case
* To test class name in snake case
@ -54,7 +55,7 @@ public interface FakeClassnameTestApi {
})
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake_classname_test",
value = FakeClassnameTestApi.PATH_TEST_CLASSNAME,
produces = { "application/json" },
consumes = { "application/json" }
)

View File

@ -34,6 +34,7 @@ public interface PetApi {
return Optional.empty();
}
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -60,7 +61,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
consumes = { "application/json", "application/xml" }
)
@ -72,6 +73,7 @@ public interface PetApi {
}
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -99,7 +101,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
default ResponseEntity<Void> deletePet(
@ -111,6 +113,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -139,7 +142,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/xml", "application/json" }
)
@ -165,6 +168,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -195,7 +199,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/xml", "application/json" }
)
@ -221,6 +225,7 @@ public interface PetApi {
}
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -247,7 +252,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -273,6 +278,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -303,7 +309,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
consumes = { "application/json", "application/xml" }
)
@ -315,6 +321,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -341,7 +348,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = { "application/x-www-form-urlencoded" }
)
@ -355,6 +362,7 @@ public interface PetApi {
}
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -382,7 +390,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -33,6 +33,7 @@ public interface StoreApi {
return Optional.empty();
}
public static final String PATH_DELETE_ORDER = "/store/order/{order_id}";
/**
* DELETE /store/order/{order_id} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -53,7 +54,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{order_id}"
value = StoreApi.PATH_DELETE_ORDER
)
default ResponseEntity<Void> deleteOrder(
@ -64,6 +65,7 @@ public interface StoreApi {
}
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -86,7 +88,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -98,6 +100,7 @@ public interface StoreApi {
}
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{order_id}";
/**
* GET /store/order/{order_id} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -121,7 +124,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{order_id}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -147,6 +150,7 @@ public interface StoreApi {
}
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -168,7 +172,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/xml", "application/json" },
consumes = { "application/json" }
)

View File

@ -33,6 +33,7 @@ public interface UserApi {
return Optional.empty();
}
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -51,7 +52,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = { "application/json" }
)
@ -63,6 +64,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -81,7 +83,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = { "application/json" }
)
@ -93,6 +95,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -111,7 +114,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = { "application/json" }
)
@ -123,6 +126,7 @@ public interface UserApi {
}
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -143,7 +147,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
default ResponseEntity<Void> deleteUser(
@ -154,6 +158,7 @@ public interface UserApi {
}
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -177,7 +182,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/xml", "application/json" }
)
@ -203,6 +208,7 @@ public interface UserApi {
}
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -225,7 +231,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/xml", "application/json" }
)
@ -238,6 +244,7 @@ public interface UserApi {
}
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -255,7 +262,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
default ResponseEntity<Void> logoutUser(
@ -266,6 +273,7 @@ public interface UserApi {
}
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -287,7 +295,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = { "application/json" }
)

View File

@ -32,6 +32,7 @@ public interface AnotherFakeApi {
return Optional.empty();
}
public static final String PATH_CALL123TEST_SPECIAL_TAGS = "/another-fake/dummy";
/**
* PATCH /another-fake/dummy : To test special tags
* To test special tags and operation ID starting with number
@ -51,7 +52,7 @@ public interface AnotherFakeApi {
})
@RequestMapping(
method = RequestMethod.PATCH,
value = "/another-fake/dummy",
value = AnotherFakeApi.PATH_CALL123TEST_SPECIAL_TAGS,
produces = { "application/json" },
consumes = { "application/json" }
)

View File

@ -44,6 +44,7 @@ public interface FakeApi {
return Optional.empty();
}
public static final String PATH_CREATE_XML_ITEM = "/fake/create_xml_item";
/**
* POST /fake/create_xml_item : creates an XmlItem
* this route creates an XmlItem
@ -62,7 +63,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/create_xml_item",
value = FakeApi.PATH_CREATE_XML_ITEM,
consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" }
)
@ -74,6 +75,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_BOOLEAN_SERIALIZE = "/fake/outer/boolean";
/**
* POST /fake/outer/boolean
* Test serialization of outer boolean types
@ -93,7 +95,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/boolean",
value = FakeApi.PATH_FAKE_OUTER_BOOLEAN_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -106,6 +108,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_COMPOSITE_SERIALIZE = "/fake/outer/composite";
/**
* POST /fake/outer/composite
* Test serialization of object with outer number type
@ -125,7 +128,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/composite",
value = FakeApi.PATH_FAKE_OUTER_COMPOSITE_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -147,6 +150,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_NUMBER_SERIALIZE = "/fake/outer/number";
/**
* POST /fake/outer/number
* Test serialization of outer number types
@ -166,7 +170,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/number",
value = FakeApi.PATH_FAKE_OUTER_NUMBER_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -179,6 +183,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_STRING_SERIALIZE = "/fake/outer/string";
/**
* POST /fake/outer/string
* Test serialization of outer string types
@ -198,7 +203,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/string",
value = FakeApi.PATH_FAKE_OUTER_STRING_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -211,6 +216,7 @@ public interface FakeApi {
}
public static final String PATH_RESPONSE_OBJECT_DIFFERENT_NAMES = "/fake/{petId}/response-object-different-names";
/**
* GET /fake/{petId}/response-object-different-names
*
@ -229,7 +235,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/{petId}/response-object-different-names",
value = FakeApi.PATH_RESPONSE_OBJECT_DIFFERENT_NAMES,
produces = { "application/json" }
)
@ -250,6 +256,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_BODY_WITH_FILE_SCHEMA = "/fake/body-with-file-schema";
/**
* PUT /fake/body-with-file-schema
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
@ -268,7 +275,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/body-with-file-schema",
value = FakeApi.PATH_TEST_BODY_WITH_FILE_SCHEMA,
consumes = { "application/json" }
)
@ -280,6 +287,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_BODY_WITH_QUERY_PARAMS = "/fake/body-with-query-params";
/**
* PUT /fake/body-with-query-params
*
@ -298,7 +306,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/body-with-query-params",
value = FakeApi.PATH_TEST_BODY_WITH_QUERY_PARAMS,
consumes = { "application/json" }
)
@ -311,6 +319,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_CLIENT_MODEL = "/fake";
/**
* PATCH /fake : To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model
@ -330,7 +339,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake",
value = FakeApi.PATH_TEST_CLIENT_MODEL,
produces = { "application/json" },
consumes = { "application/json" }
)
@ -352,6 +361,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_ENDPOINT_PARAMETERS = "/fake";
/**
* POST /fake : Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -388,7 +398,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake",
value = FakeApi.PATH_TEST_ENDPOINT_PARAMETERS,
consumes = { "application/x-www-form-urlencoded" }
)
@ -413,6 +423,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_ENUM_PARAMETERS = "/fake";
/**
* GET /fake : To test enum parameters
* To test enum parameters
@ -440,7 +451,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/fake",
value = FakeApi.PATH_TEST_ENUM_PARAMETERS,
consumes = { "application/x-www-form-urlencoded" }
)
@ -459,6 +470,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_GROUP_PARAMETERS = "/fake";
/**
* DELETE /fake : Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
@ -482,7 +494,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/fake"
value = FakeApi.PATH_TEST_GROUP_PARAMETERS
)
default ResponseEntity<Void> testGroupParameters(
@ -498,6 +510,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_INLINE_ADDITIONAL_PROPERTIES = "/fake/inline-additionalProperties";
/**
* POST /fake/inline-additionalProperties : test inline additionalProperties
*
@ -516,7 +529,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/inline-additionalProperties",
value = FakeApi.PATH_TEST_INLINE_ADDITIONAL_PROPERTIES,
consumes = { "application/json" }
)
@ -528,6 +541,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_JSON_FORM_DATA = "/fake/jsonFormData";
/**
* GET /fake/jsonFormData : test json serialization of form data
*
@ -547,7 +561,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/jsonFormData",
value = FakeApi.PATH_TEST_JSON_FORM_DATA,
consumes = { "application/x-www-form-urlencoded" }
)
@ -560,6 +574,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_NULLABLE = "/fake/nullable";
/**
* POST /fake/nullable : test nullable parent property
*
@ -578,7 +593,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/nullable",
value = FakeApi.PATH_TEST_NULLABLE,
consumes = { "application/json" }
)
@ -590,6 +605,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_QUERY_PARAMETER_COLLECTION_FORMAT = "/fake/test-query-parameters";
/**
* PUT /fake/test-query-parameters
* To test the collection format in query parameters
@ -611,7 +627,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/test-query-parameters"
value = FakeApi.PATH_TEST_QUERY_PARAMETER_COLLECTION_FORMAT
)
default ResponseEntity<Void> testQueryParameterCollectionFormat(
@ -625,6 +641,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_WITH_RESULT_EXAMPLE = "/fake/response-with-example";
/**
* GET /fake/response-with-example
* This endpoint defines an example value for its response schema.
@ -643,7 +660,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/response-with-example",
value = FakeApi.PATH_TEST_WITH_RESULT_EXAMPLE,
produces = { "application/json" }
)
@ -664,6 +681,7 @@ public interface FakeApi {
}
public static final String PATH_UPLOAD_FILE_WITH_REQUIRED_FILE = "/fake/{petId}/uploadImageWithRequiredFile";
/**
* POST /fake/{petId}/uploadImageWithRequiredFile : uploads an image (required)
*
@ -691,7 +709,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/{petId}/uploadImageWithRequiredFile",
value = FakeApi.PATH_UPLOAD_FILE_WITH_REQUIRED_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -32,6 +32,7 @@ public interface FakeClassnameTestApi {
return Optional.empty();
}
public static final String PATH_TEST_CLASSNAME = "/fake_classname_test";
/**
* PATCH /fake_classname_test : To test class name in snake case
* To test class name in snake case
@ -54,7 +55,7 @@ public interface FakeClassnameTestApi {
})
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake_classname_test",
value = FakeClassnameTestApi.PATH_TEST_CLASSNAME,
produces = { "application/json" },
consumes = { "application/json" }
)

View File

@ -34,6 +34,7 @@ public interface PetApi {
return Optional.empty();
}
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -60,7 +61,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
consumes = { "application/json", "application/xml" }
)
@ -72,6 +73,7 @@ public interface PetApi {
}
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -99,7 +101,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
default ResponseEntity<Void> deletePet(
@ -111,6 +113,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -139,7 +142,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/xml", "application/json" }
)
@ -165,6 +168,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -195,7 +199,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/xml", "application/json" }
)
@ -221,6 +225,7 @@ public interface PetApi {
}
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -247,7 +252,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -273,6 +278,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -303,7 +309,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
consumes = { "application/json", "application/xml" }
)
@ -315,6 +321,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -341,7 +348,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = { "application/x-www-form-urlencoded" }
)
@ -355,6 +362,7 @@ public interface PetApi {
}
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -382,7 +390,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -33,6 +33,7 @@ public interface StoreApi {
return Optional.empty();
}
public static final String PATH_DELETE_ORDER = "/store/order/{order_id}";
/**
* DELETE /store/order/{order_id} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -53,7 +54,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{order_id}"
value = StoreApi.PATH_DELETE_ORDER
)
default ResponseEntity<Void> deleteOrder(
@ -64,6 +65,7 @@ public interface StoreApi {
}
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -86,7 +88,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -98,6 +100,7 @@ public interface StoreApi {
}
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{order_id}";
/**
* GET /store/order/{order_id} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -121,7 +124,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{order_id}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -147,6 +150,7 @@ public interface StoreApi {
}
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -168,7 +172,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/xml", "application/json" },
consumes = { "application/json" }
)

View File

@ -33,6 +33,7 @@ public interface UserApi {
return Optional.empty();
}
public static final String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
@ -51,7 +52,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/user",
value = UserApi.PATH_CREATE_USER,
consumes = { "application/json" }
)
@ -63,6 +64,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
@ -81,7 +83,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithArray",
value = UserApi.PATH_CREATE_USERS_WITH_ARRAY_INPUT,
consumes = { "application/json" }
)
@ -93,6 +95,7 @@ public interface UserApi {
}
public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
@ -111,7 +114,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/user/createWithList",
value = UserApi.PATH_CREATE_USERS_WITH_LIST_INPUT,
consumes = { "application/json" }
)
@ -123,6 +126,7 @@ public interface UserApi {
}
public static final String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
@ -143,7 +147,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/user/{username}"
value = UserApi.PATH_DELETE_USER
)
default ResponseEntity<Void> deleteUser(
@ -154,6 +158,7 @@ public interface UserApi {
}
public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
@ -177,7 +182,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/user/{username}",
value = UserApi.PATH_GET_USER_BY_NAME,
produces = { "application/xml", "application/json" }
)
@ -203,6 +208,7 @@ public interface UserApi {
}
public static final String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
@ -225,7 +231,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/user/login",
value = UserApi.PATH_LOGIN_USER,
produces = { "application/xml", "application/json" }
)
@ -238,6 +244,7 @@ public interface UserApi {
}
public static final String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
@ -255,7 +262,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/user/logout"
value = UserApi.PATH_LOGOUT_USER
)
default ResponseEntity<Void> logoutUser(
@ -266,6 +273,7 @@ public interface UserApi {
}
public static final String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
@ -287,7 +295,7 @@ public interface UserApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/user/{username}",
value = UserApi.PATH_UPDATE_USER,
consumes = { "application/json" }
)

View File

@ -32,6 +32,7 @@ public interface AnotherFakeApi {
return Optional.empty();
}
public static final String PATH_CALL123TEST_SPECIAL_TAGS = "/another-fake/dummy";
/**
* PATCH /another-fake/dummy : To test special tags
* To test special tags and operation ID starting with number
@ -51,7 +52,7 @@ public interface AnotherFakeApi {
})
@RequestMapping(
method = RequestMethod.PATCH,
value = "/another-fake/dummy",
value = AnotherFakeApi.PATH_CALL123TEST_SPECIAL_TAGS,
produces = { "application/json" },
consumes = { "application/json" }
)

View File

@ -44,6 +44,7 @@ public interface FakeApi {
return Optional.empty();
}
public static final String PATH_CREATE_XML_ITEM = "/fake/create_xml_item";
/**
* POST /fake/create_xml_item : creates an XmlItem
* this route creates an XmlItem
@ -62,7 +63,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/create_xml_item",
value = FakeApi.PATH_CREATE_XML_ITEM,
consumes = { "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16" }
)
@ -74,6 +75,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_BOOLEAN_SERIALIZE = "/fake/outer/boolean";
/**
* POST /fake/outer/boolean
* Test serialization of outer boolean types
@ -93,7 +95,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/boolean",
value = FakeApi.PATH_FAKE_OUTER_BOOLEAN_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -106,6 +108,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_COMPOSITE_SERIALIZE = "/fake/outer/composite";
/**
* POST /fake/outer/composite
* Test serialization of object with outer number type
@ -125,7 +128,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/composite",
value = FakeApi.PATH_FAKE_OUTER_COMPOSITE_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -147,6 +150,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_NUMBER_SERIALIZE = "/fake/outer/number";
/**
* POST /fake/outer/number
* Test serialization of outer number types
@ -166,7 +170,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/number",
value = FakeApi.PATH_FAKE_OUTER_NUMBER_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -179,6 +183,7 @@ public interface FakeApi {
}
public static final String PATH_FAKE_OUTER_STRING_SERIALIZE = "/fake/outer/string";
/**
* POST /fake/outer/string
* Test serialization of outer string types
@ -198,7 +203,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/outer/string",
value = FakeApi.PATH_FAKE_OUTER_STRING_SERIALIZE,
produces = { "*/*" },
consumes = { "application/json" }
)
@ -211,6 +216,7 @@ public interface FakeApi {
}
public static final String PATH_RESPONSE_OBJECT_DIFFERENT_NAMES = "/fake/{petId}/response-object-different-names";
/**
* GET /fake/{petId}/response-object-different-names
*
@ -229,7 +235,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/{petId}/response-object-different-names",
value = FakeApi.PATH_RESPONSE_OBJECT_DIFFERENT_NAMES,
produces = { "application/json" }
)
@ -250,6 +256,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_BODY_WITH_FILE_SCHEMA = "/fake/body-with-file-schema";
/**
* PUT /fake/body-with-file-schema
* For this test, the body for this request much reference a schema named &#x60;File&#x60;.
@ -268,7 +275,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/body-with-file-schema",
value = FakeApi.PATH_TEST_BODY_WITH_FILE_SCHEMA,
consumes = { "application/json" }
)
@ -280,6 +287,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_BODY_WITH_QUERY_PARAMS = "/fake/body-with-query-params";
/**
* PUT /fake/body-with-query-params
*
@ -298,7 +306,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/body-with-query-params",
value = FakeApi.PATH_TEST_BODY_WITH_QUERY_PARAMS,
consumes = { "application/json" }
)
@ -311,6 +319,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_CLIENT_MODEL = "/fake";
/**
* PATCH /fake : To test \&quot;client\&quot; model
* To test \&quot;client\&quot; model
@ -330,7 +339,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake",
value = FakeApi.PATH_TEST_CLIENT_MODEL,
produces = { "application/json" },
consumes = { "application/json" }
)
@ -352,6 +361,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_ENDPOINT_PARAMETERS = "/fake";
/**
* POST /fake : Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -388,7 +398,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake",
value = FakeApi.PATH_TEST_ENDPOINT_PARAMETERS,
consumes = { "application/x-www-form-urlencoded" }
)
@ -413,6 +423,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_ENUM_PARAMETERS = "/fake";
/**
* GET /fake : To test enum parameters
* To test enum parameters
@ -440,7 +451,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/fake",
value = FakeApi.PATH_TEST_ENUM_PARAMETERS,
consumes = { "application/x-www-form-urlencoded" }
)
@ -459,6 +470,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_GROUP_PARAMETERS = "/fake";
/**
* DELETE /fake : Fake endpoint to test group parameters (optional)
* Fake endpoint to test group parameters (optional)
@ -482,7 +494,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/fake"
value = FakeApi.PATH_TEST_GROUP_PARAMETERS
)
default ResponseEntity<Void> testGroupParameters(
@ -498,6 +510,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_INLINE_ADDITIONAL_PROPERTIES = "/fake/inline-additionalProperties";
/**
* POST /fake/inline-additionalProperties : test inline additionalProperties
*
@ -516,7 +529,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/inline-additionalProperties",
value = FakeApi.PATH_TEST_INLINE_ADDITIONAL_PROPERTIES,
consumes = { "application/json" }
)
@ -528,6 +541,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_JSON_FORM_DATA = "/fake/jsonFormData";
/**
* GET /fake/jsonFormData : test json serialization of form data
*
@ -547,7 +561,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/jsonFormData",
value = FakeApi.PATH_TEST_JSON_FORM_DATA,
consumes = { "application/x-www-form-urlencoded" }
)
@ -560,6 +574,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_NULLABLE = "/fake/nullable";
/**
* POST /fake/nullable : test nullable parent property
*
@ -578,7 +593,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/nullable",
value = FakeApi.PATH_TEST_NULLABLE,
consumes = { "application/json" }
)
@ -590,6 +605,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_QUERY_PARAMETER_COLLECTION_FORMAT = "/fake/test-query-parameters";
/**
* PUT /fake/test-query-parameters
* To test the collection format in query parameters
@ -611,7 +627,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/fake/test-query-parameters"
value = FakeApi.PATH_TEST_QUERY_PARAMETER_COLLECTION_FORMAT
)
default ResponseEntity<Void> testQueryParameterCollectionFormat(
@ -625,6 +641,7 @@ public interface FakeApi {
}
public static final String PATH_TEST_WITH_RESULT_EXAMPLE = "/fake/response-with-example";
/**
* GET /fake/response-with-example
* This endpoint defines an example value for its response schema.
@ -643,7 +660,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/fake/response-with-example",
value = FakeApi.PATH_TEST_WITH_RESULT_EXAMPLE,
produces = { "application/json" }
)
@ -664,6 +681,7 @@ public interface FakeApi {
}
public static final String PATH_UPLOAD_FILE_WITH_REQUIRED_FILE = "/fake/{petId}/uploadImageWithRequiredFile";
/**
* POST /fake/{petId}/uploadImageWithRequiredFile : uploads an image (required)
*
@ -691,7 +709,7 @@ public interface FakeApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/fake/{petId}/uploadImageWithRequiredFile",
value = FakeApi.PATH_UPLOAD_FILE_WITH_REQUIRED_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -32,6 +32,7 @@ public interface FakeClassnameTestApi {
return Optional.empty();
}
public static final String PATH_TEST_CLASSNAME = "/fake_classname_test";
/**
* PATCH /fake_classname_test : To test class name in snake case
* To test class name in snake case
@ -54,7 +55,7 @@ public interface FakeClassnameTestApi {
})
@RequestMapping(
method = RequestMethod.PATCH,
value = "/fake_classname_test",
value = FakeClassnameTestApi.PATH_TEST_CLASSNAME,
produces = { "application/json" },
consumes = { "application/json" }
)

View File

@ -34,6 +34,7 @@ public interface PetApi {
return Optional.empty();
}
public static final String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
@ -60,7 +61,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet",
value = PetApi.PATH_ADD_PET,
consumes = { "application/json", "application/xml" }
)
@ -72,6 +73,7 @@ public interface PetApi {
}
public static final String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
@ -99,7 +101,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/pet/{petId}"
value = PetApi.PATH_DELETE_PET
)
default ResponseEntity<Void> deletePet(
@ -111,6 +113,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
/**
* GET /pet/findByStatus : Finds Pets by status
* Multiple status values can be provided with comma separated strings
@ -139,7 +142,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByStatus",
value = PetApi.PATH_FIND_PETS_BY_STATUS,
produces = { "application/xml", "application/json" }
)
@ -165,6 +168,7 @@ public interface PetApi {
}
public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
/**
* GET /pet/findByTags : Finds Pets by tags
* Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
@ -195,7 +199,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/findByTags",
value = PetApi.PATH_FIND_PETS_BY_TAGS,
produces = { "application/xml", "application/json" }
)
@ -221,6 +225,7 @@ public interface PetApi {
}
public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
@ -247,7 +252,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/pet/{petId}",
value = PetApi.PATH_GET_PET_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -273,6 +278,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
@ -303,7 +309,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.PUT,
value = "/pet",
value = PetApi.PATH_UPDATE_PET,
consumes = { "application/json", "application/xml" }
)
@ -315,6 +321,7 @@ public interface PetApi {
}
public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
@ -341,7 +348,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}",
value = PetApi.PATH_UPDATE_PET_WITH_FORM,
consumes = { "application/x-www-form-urlencoded" }
)
@ -355,6 +362,7 @@ public interface PetApi {
}
public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
@ -382,7 +390,7 @@ public interface PetApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/pet/{petId}/uploadImage",
value = PetApi.PATH_UPLOAD_FILE,
produces = { "application/json" },
consumes = { "multipart/form-data" }
)

View File

@ -33,6 +33,7 @@ public interface StoreApi {
return Optional.empty();
}
public static final String PATH_DELETE_ORDER = "/store/order/{order_id}";
/**
* DELETE /store/order/{order_id} : Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
@ -53,7 +54,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.DELETE,
value = "/store/order/{order_id}"
value = StoreApi.PATH_DELETE_ORDER
)
default ResponseEntity<Void> deleteOrder(
@ -64,6 +65,7 @@ public interface StoreApi {
}
public static final String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
@ -86,7 +88,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/store/inventory",
value = StoreApi.PATH_GET_INVENTORY,
produces = { "application/json" }
)
@ -98,6 +100,7 @@ public interface StoreApi {
}
public static final String PATH_GET_ORDER_BY_ID = "/store/order/{order_id}";
/**
* GET /store/order/{order_id} : Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generate exceptions
@ -121,7 +124,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.GET,
value = "/store/order/{order_id}",
value = StoreApi.PATH_GET_ORDER_BY_ID,
produces = { "application/xml", "application/json" }
)
@ -147,6 +150,7 @@ public interface StoreApi {
}
public static final String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
@ -168,7 +172,7 @@ public interface StoreApi {
})
@RequestMapping(
method = RequestMethod.POST,
value = "/store/order",
value = StoreApi.PATH_PLACE_ORDER,
produces = { "application/xml", "application/json" },
consumes = { "application/json" }
)

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