Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public interface {{classname}} {
{{/jdk8-default-interface}}
{{#operation}}

public static final String PATH_{{#lambda.uppercase}}{{#lambda.snakecase}}{{{operationId}}}{{/lambda.snakecase}}{{/lambda.uppercase}} = "{{{path}}}";
String PATH_{{#lambda.uppercase}}{{#lambda.snakecase}}{{{operationId}}}{{/lambda.snakecase}}{{/lambda.uppercase}} = "{{{path}}}";
/**
* {{httpMethod}} {{{path}}}{{#summary}} : {{.}}{{/summary}}
{{#notes}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ public void testRequestMappingAnnotation() throws IOException {
// Check that the @RequestMapping annotation is generated in the Api file
JavaFileAssert.assertThat(files.get("PetApi.java"))
.fileContains("@RequestMapping(\"${openapi.openAPIPetstore.base-path:/v2}\")",
"public static final String PATH_ADD_PET = \"/pet\";",
"String PATH_ADD_PET = \"/pet\";",
"value = PetApi.PATH_ADD_PET");

// Check that the @RequestMapping annotation is not generated in the Controller file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
@Validated
public interface SomeApi {

public static final String PATH_SOME_ENDPOINT_GET = "/some/endpoint";
String PATH_SOME_ENDPOINT_GET = "/some/endpoint";
/**
* GET /some/endpoint
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
@Api(value = "Default", description = "the Default API")
public interface DefaultApi {

public static final String PATH_GET = "/thingy/{date}";
String PATH_GET = "/thingy/{date}";
/**
* GET /thingy/{date}
*
Expand Down Expand Up @@ -61,7 +61,7 @@ ResponseEntity<Void> get(
);


public static final String PATH_UPDATE_PET_WITH_FORM = "/thingy/{date}";
String PATH_UPDATE_PET_WITH_FORM = "/thingy/{date}";
/**
* POST /thingy/{date}
* update with form data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
@Tag(name = "pet", description = "Everything about your Pets")
public interface PetApi {

public static final String PATH_ADD_PET = "/pet";
String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
Expand Down Expand Up @@ -71,7 +71,7 @@ ResponseEntity<Void> addPet(
);


public static final String PATH_DELETE_PET = "/pet/{petId}";
String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
Expand Down Expand Up @@ -103,7 +103,7 @@ ResponseEntity<Void> deletePet(
);


public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
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
Expand Down Expand Up @@ -139,7 +139,7 @@ ResponseEntity<List<Pet>> findPetsByStatus(
);


public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
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.
Expand Down Expand Up @@ -178,7 +178,7 @@ ResponseEntity<List<Pet>> findPetsByTags(
);


public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
Expand Down Expand Up @@ -216,7 +216,7 @@ ResponseEntity<Pet> getPetById(
);


public static final String PATH_UPDATE_PET = "/pet";
String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
Expand Down Expand Up @@ -251,7 +251,7 @@ ResponseEntity<Void> updatePet(
);


public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
Expand Down Expand Up @@ -286,7 +286,7 @@ ResponseEntity<Void> updatePetWithForm(
);


public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
@Tag(name = "store", description = "Access to Petstore orders")
public interface StoreApi {

public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
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
Expand Down Expand Up @@ -68,7 +68,7 @@ ResponseEntity<Void> deleteOrder(
);


public static final String PATH_GET_INVENTORY = "/store/inventory";
String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
Expand Down Expand Up @@ -100,7 +100,7 @@ ResponseEntity<Map<String, Integer>> getInventory(
);


public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
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
Expand Down Expand Up @@ -135,7 +135,7 @@ ResponseEntity<Order> getOrderById(
);


public static final String PATH_PLACE_ORDER = "/store/order";
String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
@Tag(name = "user", description = "Operations about user")
public interface UserApi {

public static final String PATH_CREATE_USER = "/user";
String PATH_CREATE_USER = "/user";
/**
* POST /user : Create user
* This can only be done by the logged in user.
Expand Down Expand Up @@ -70,7 +70,7 @@ ResponseEntity<Void> createUser(
);


public static final String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
String PATH_CREATE_USERS_WITH_ARRAY_INPUT = "/user/createWithArray";
/**
* POST /user/createWithArray : Creates list of users with given input array
*
Expand Down Expand Up @@ -101,7 +101,7 @@ ResponseEntity<Void> createUsersWithArrayInput(
);


public static final String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
String PATH_CREATE_USERS_WITH_LIST_INPUT = "/user/createWithList";
/**
* POST /user/createWithList : Creates list of users with given input array
*
Expand Down Expand Up @@ -132,7 +132,7 @@ ResponseEntity<Void> createUsersWithListInput(
);


public static final String PATH_DELETE_USER = "/user/{username}";
String PATH_DELETE_USER = "/user/{username}";
/**
* DELETE /user/{username} : Delete user
* This can only be done by the logged in user.
Expand Down Expand Up @@ -164,7 +164,7 @@ ResponseEntity<Void> deleteUser(
);


public static final String PATH_GET_USER_BY_NAME = "/user/{username}";
String PATH_GET_USER_BY_NAME = "/user/{username}";
/**
* GET /user/{username} : Get user by user name
*
Expand Down Expand Up @@ -199,7 +199,7 @@ ResponseEntity<User> getUserByName(
);


public static final String PATH_LOGIN_USER = "/user/login";
String PATH_LOGIN_USER = "/user/login";
/**
* GET /user/login : Logs user into the system
*
Expand Down Expand Up @@ -234,7 +234,7 @@ ResponseEntity<String> loginUser(
);


public static final String PATH_LOGOUT_USER = "/user/logout";
String PATH_LOGOUT_USER = "/user/logout";
/**
* GET /user/logout : Logs out current logged in user session
*
Expand Down Expand Up @@ -263,7 +263,7 @@ ResponseEntity<Void> logoutUser(
);


public static final String PATH_UPDATE_USER = "/user/{username}";
String PATH_UPDATE_USER = "/user/{username}";
/**
* PUT /user/{username} : Updated user
* This can only be done by the logged in user.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
@Api(value = "pet", description = "Everything about your Pets")
public interface PetApi {

public static final String PATH_ADD_PET = "/pet";
String PATH_ADD_PET = "/pet";
/**
* POST /pet : Add a new pet to the store
*
Expand Down Expand Up @@ -67,7 +67,7 @@ ResponseEntity<Pet> addPet(
);


public static final String PATH_DELETE_PET = "/pet/{petId}";
String PATH_DELETE_PET = "/pet/{petId}";
/**
* DELETE /pet/{petId} : Deletes a pet
*
Expand Down Expand Up @@ -102,7 +102,7 @@ ResponseEntity<Void> deletePet(
);


public static final String PATH_FIND_PETS_BY_STATUS = "/pet/findByStatus";
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
Expand Down Expand Up @@ -139,7 +139,7 @@ ResponseEntity<List<Pet>> findPetsByStatus(
);


public static final String PATH_FIND_PETS_BY_TAGS = "/pet/findByTags";
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.
Expand Down Expand Up @@ -178,7 +178,7 @@ ResponseEntity<List<Pet>> findPetsByTags(
);


public static final String PATH_GET_PET_BY_ID = "/pet/{petId}";
String PATH_GET_PET_BY_ID = "/pet/{petId}";
/**
* GET /pet/{petId} : Find pet by ID
* Returns a single pet
Expand Down Expand Up @@ -214,7 +214,7 @@ ResponseEntity<Pet> getPetById(
);


public static final String PATH_UPDATE_PET = "/pet";
String PATH_UPDATE_PET = "/pet";
/**
* PUT /pet : Update an existing pet
*
Expand Down Expand Up @@ -258,7 +258,7 @@ ResponseEntity<Pet> updatePet(
);


public static final String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
String PATH_UPDATE_PET_WITH_FORM = "/pet/{petId}";
/**
* POST /pet/{petId} : Updates a pet in the store with form data
*
Expand Down Expand Up @@ -296,7 +296,7 @@ ResponseEntity<Void> updatePetWithForm(
);


public static final String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
String PATH_UPLOAD_FILE = "/pet/{petId}/uploadImage";
/**
* POST /pet/{petId}/uploadImage : uploads an image
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
@Api(value = "store", description = "Access to Petstore orders")
public interface StoreApi {

public static final String PATH_DELETE_ORDER = "/store/order/{orderId}";
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
Expand Down Expand Up @@ -57,7 +57,7 @@ ResponseEntity<Void> deleteOrder(
);


public static final String PATH_GET_INVENTORY = "/store/inventory";
String PATH_GET_INVENTORY = "/store/inventory";
/**
* GET /store/inventory : Returns pet inventories by status
* Returns a map of status codes to quantities
Expand Down Expand Up @@ -89,7 +89,7 @@ ResponseEntity<Map<String, Integer>> getInventory(
);


public static final String PATH_GET_ORDER_BY_ID = "/store/order/{orderId}";
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
Expand Down Expand Up @@ -122,7 +122,7 @@ ResponseEntity<Order> getOrderById(
);


public static final String PATH_PLACE_ORDER = "/store/order";
String PATH_PLACE_ORDER = "/store/order";
/**
* POST /store/order : Place an order for a pet
*
Expand Down
Loading
Loading