forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/3.4.x' into 4.0.x
This commit is contained in:
@@ -26,7 +26,7 @@ public interface AnotherFakeApiDelegate {
|
||||
/**
|
||||
* @see AnotherFakeApi#call123testSpecialTags
|
||||
*/
|
||||
default ResponseEntity<Client> call123testSpecialTags( Client client) {
|
||||
default ResponseEntity<Client> call123testSpecialTags(Client client) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
|
||||
@@ -8,8 +8,10 @@ import java.io.IOException;
|
||||
public class ApiUtil {
|
||||
public static void setExampleResponse(NativeWebRequest req, String contentType, String example) {
|
||||
try {
|
||||
req.getNativeResponse(HttpServletResponse.class).addHeader("Content-Type", contentType);
|
||||
req.getNativeResponse(HttpServletResponse.class).getOutputStream().print(example);
|
||||
HttpServletResponse res = req.getNativeResponse(HttpServletResponse.class);
|
||||
res.setCharacterEncoding("UTF-8");
|
||||
res.addHeader("Content-Type", contentType);
|
||||
res.getWriter().print(example);
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ public interface FakeApi {
|
||||
@RequestMapping(value = "/fake",
|
||||
consumes = { "application/x-www-form-urlencoded" },
|
||||
method = RequestMethod.POST)
|
||||
default ResponseEntity<Void> testEndpointParameters(@ApiParam(value = "None", required=true, defaultValue="null") @RequestParam(value="number", required=true) BigDecimal number,@ApiParam(value = "None", required=true, defaultValue="null") @RequestParam(value="double", required=true) Double _double,@ApiParam(value = "None", required=true, defaultValue="null") @RequestParam(value="pattern_without_delimiter", required=true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true, defaultValue="null") @RequestParam(value="byte", required=true) byte[] _byte,@ApiParam(value = "None", defaultValue="null") @RequestParam(value="integer", required=false) Integer integer,@ApiParam(value = "None", defaultValue="null") @RequestParam(value="int32", required=false) Integer int32,@ApiParam(value = "None", defaultValue="null") @RequestParam(value="int64", required=false) Long int64,@ApiParam(value = "None", defaultValue="null") @RequestParam(value="float", required=false) Float _float,@ApiParam(value = "None", defaultValue="null") @RequestParam(value="string", required=false) String string,@ApiParam(value = "file detail") @Valid @RequestPart("file") MultipartFile binary,@ApiParam(value = "None", defaultValue="null") @RequestParam(value="date", required=false) LocalDate date,@ApiParam(value = "None", defaultValue="null") @RequestParam(value="dateTime", required=false) OffsetDateTime dateTime,@ApiParam(value = "None", defaultValue="null") @RequestParam(value="password", required=false) String password,@ApiParam(value = "None", defaultValue="null") @RequestParam(value="callback", required=false) String paramCallback) {
|
||||
default ResponseEntity<Void> testEndpointParameters(@ApiParam(value = "None", required=true) @RequestParam(value="number", required=true) BigDecimal number,@ApiParam(value = "None", required=true) @RequestParam(value="double", required=true) Double _double,@ApiParam(value = "None", required=true) @RequestParam(value="pattern_without_delimiter", required=true) String patternWithoutDelimiter,@ApiParam(value = "None", required=true) @RequestParam(value="byte", required=true) byte[] _byte,@ApiParam(value = "None") @RequestParam(value="integer", required=false) Integer integer,@ApiParam(value = "None") @RequestParam(value="int32", required=false) Integer int32,@ApiParam(value = "None") @RequestParam(value="int64", required=false) Long int64,@ApiParam(value = "None") @RequestParam(value="float", required=false) Float _float,@ApiParam(value = "None") @RequestParam(value="string", required=false) String string,@ApiParam(value = "file detail") @Valid @RequestPart("file") MultipartFile binary,@ApiParam(value = "None") @RequestParam(value="date", required=false) LocalDate date,@ApiParam(value = "None") @RequestParam(value="dateTime", required=false) OffsetDateTime dateTime,@ApiParam(value = "None") @RequestParam(value="password", required=false) String password,@ApiParam(value = "None") @RequestParam(value="callback", required=false) String paramCallback) {
|
||||
return getDelegate().testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback);
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ public interface FakeApi {
|
||||
@RequestMapping(value = "/fake",
|
||||
consumes = { "application/x-www-form-urlencoded" },
|
||||
method = RequestMethod.GET)
|
||||
default ResponseEntity<Void> testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $") @RequestHeader(value="enum_header_string_array", required=false) List<String> enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $") @Valid @RequestParam(value = "enum_query_string_array", required = false) List<String> enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @RequestParam(value="enum_form_string_array", required=false) List<String> enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestParam(value="enum_form_string", required=false) String enumFormString) {
|
||||
default ResponseEntity<Void> testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $", defaultValue="new ArrayList<>()") @RequestHeader(value="enum_header_string_array", required=false) List<String> enumHeaderStringArray,@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestHeader(value="enum_header_string", required=false) String enumHeaderString,@ApiParam(value = "Query parameter enum test (string array)", allowableValues = ">, $", defaultValue = "new ArrayList<>()") @Valid @RequestParam(value = "enum_query_string_array", required = false, defaultValue="new ArrayList<>()") List<String> enumQueryStringArray,@ApiParam(value = "Query parameter enum test (string)", allowableValues = "_abc, -efg, (xyz)", defaultValue = "-efg") @Valid @RequestParam(value = "enum_query_string", required = false, defaultValue="-efg") String enumQueryString,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1, -2") @Valid @RequestParam(value = "enum_query_integer", required = false) Integer enumQueryInteger,@ApiParam(value = "Query parameter enum test (double)", allowableValues = "1.1, -1.2") @Valid @RequestParam(value = "enum_query_double", required = false) Double enumQueryDouble,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @RequestParam(value="enum_form_string_array", required=false) List<String> enumFormStringArray,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @RequestParam(value="enum_form_string", required=false) String enumFormString) {
|
||||
return getDelegate().testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ public interface FakeApi {
|
||||
@RequestMapping(value = "/fake/jsonFormData",
|
||||
consumes = { "application/x-www-form-urlencoded" },
|
||||
method = RequestMethod.GET)
|
||||
default ResponseEntity<Void> testJsonFormData(@ApiParam(value = "field1", required=true, defaultValue="null") @RequestParam(value="param", required=true) String param,@ApiParam(value = "field2", required=true, defaultValue="null") @RequestParam(value="param2", required=true) String param2) {
|
||||
default ResponseEntity<Void> testJsonFormData(@ApiParam(value = "field1", required=true) @RequestParam(value="param", required=true) String param,@ApiParam(value = "field2", required=true) @RequestParam(value="param2", required=true) String param2) {
|
||||
return getDelegate().testJsonFormData(param, param2);
|
||||
}
|
||||
|
||||
@@ -178,7 +178,7 @@ public interface FakeApi {
|
||||
produces = { "application/json" },
|
||||
consumes = { "multipart/form-data" },
|
||||
method = RequestMethod.POST)
|
||||
default ResponseEntity<ModelApiResponse> uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file detail") @Valid @RequestPart("file") MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server", defaultValue="null") @RequestParam(value="additionalMetadata", required=false) String additionalMetadata) {
|
||||
default ResponseEntity<ModelApiResponse> uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "file detail") @Valid @RequestPart("file") MultipartFile requiredFile,@ApiParam(value = "Additional data to pass to server") @RequestParam(value="additionalMetadata", required=false) String additionalMetadata) {
|
||||
return getDelegate().uploadFileWithRequiredFile(petId, requiredFile, additionalMetadata);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,15 +35,7 @@ public interface FakeApiDelegate {
|
||||
/**
|
||||
* @see FakeApi#fakeOuterBooleanSerialize
|
||||
*/
|
||||
default ResponseEntity<Boolean> fakeOuterBooleanSerialize( Boolean body) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
default ResponseEntity<Boolean> fakeOuterBooleanSerialize(Boolean body) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -51,7 +43,7 @@ public interface FakeApiDelegate {
|
||||
/**
|
||||
* @see FakeApi#fakeOuterCompositeSerialize
|
||||
*/
|
||||
default ResponseEntity<OuterComposite> fakeOuterCompositeSerialize( OuterComposite outerComposite) {
|
||||
default ResponseEntity<OuterComposite> fakeOuterCompositeSerialize(OuterComposite outerComposite) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
||||
@@ -67,15 +59,7 @@ public interface FakeApiDelegate {
|
||||
/**
|
||||
* @see FakeApi#fakeOuterNumberSerialize
|
||||
*/
|
||||
default ResponseEntity<BigDecimal> fakeOuterNumberSerialize( BigDecimal body) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
default ResponseEntity<BigDecimal> fakeOuterNumberSerialize(BigDecimal body) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -83,15 +67,7 @@ public interface FakeApiDelegate {
|
||||
/**
|
||||
* @see FakeApi#fakeOuterStringSerialize
|
||||
*/
|
||||
default ResponseEntity<String> fakeOuterStringSerialize( String body) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("*/*"))) {
|
||||
ApiUtil.setExampleResponse(request, "*/*", "null");
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
default ResponseEntity<String> fakeOuterStringSerialize(String body) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -99,7 +75,7 @@ public interface FakeApiDelegate {
|
||||
/**
|
||||
* @see FakeApi#testBodyWithFileSchema
|
||||
*/
|
||||
default ResponseEntity<Void> testBodyWithFileSchema( FileSchemaTestClass fileSchemaTestClass) {
|
||||
default ResponseEntity<Void> testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -107,8 +83,8 @@ public interface FakeApiDelegate {
|
||||
/**
|
||||
* @see FakeApi#testBodyWithQueryParams
|
||||
*/
|
||||
default ResponseEntity<Void> testBodyWithQueryParams( String query,
|
||||
User user) {
|
||||
default ResponseEntity<Void> testBodyWithQueryParams(String query,
|
||||
User user) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -116,7 +92,7 @@ public interface FakeApiDelegate {
|
||||
/**
|
||||
* @see FakeApi#testClientModel
|
||||
*/
|
||||
default ResponseEntity<Client> testClientModel( Client client) {
|
||||
default ResponseEntity<Client> testClientModel(Client client) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
@@ -132,20 +108,20 @@ public interface FakeApiDelegate {
|
||||
/**
|
||||
* @see FakeApi#testEndpointParameters
|
||||
*/
|
||||
default ResponseEntity<Void> testEndpointParameters( BigDecimal number,
|
||||
Double _double,
|
||||
String patternWithoutDelimiter,
|
||||
byte[] _byte,
|
||||
Integer integer,
|
||||
Integer int32,
|
||||
Long int64,
|
||||
Float _float,
|
||||
String string,
|
||||
default ResponseEntity<Void> testEndpointParameters(BigDecimal number,
|
||||
Double _double,
|
||||
String patternWithoutDelimiter,
|
||||
byte[] _byte,
|
||||
Integer integer,
|
||||
Integer int32,
|
||||
Long int64,
|
||||
Float _float,
|
||||
String string,
|
||||
MultipartFile binary,
|
||||
LocalDate date,
|
||||
OffsetDateTime dateTime,
|
||||
String password,
|
||||
String paramCallback) {
|
||||
LocalDate date,
|
||||
OffsetDateTime dateTime,
|
||||
String password,
|
||||
String paramCallback) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -153,14 +129,14 @@ public interface FakeApiDelegate {
|
||||
/**
|
||||
* @see FakeApi#testEnumParameters
|
||||
*/
|
||||
default ResponseEntity<Void> testEnumParameters( List<String> enumHeaderStringArray,
|
||||
String enumHeaderString,
|
||||
List<String> enumQueryStringArray,
|
||||
String enumQueryString,
|
||||
Integer enumQueryInteger,
|
||||
Double enumQueryDouble,
|
||||
List<String> enumFormStringArray,
|
||||
String enumFormString) {
|
||||
default ResponseEntity<Void> testEnumParameters(List<String> enumHeaderStringArray,
|
||||
String enumHeaderString,
|
||||
List<String> enumQueryStringArray,
|
||||
String enumQueryString,
|
||||
Integer enumQueryInteger,
|
||||
Double enumQueryDouble,
|
||||
List<String> enumFormStringArray,
|
||||
String enumFormString) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -168,7 +144,7 @@ public interface FakeApiDelegate {
|
||||
/**
|
||||
* @see FakeApi#testInlineAdditionalProperties
|
||||
*/
|
||||
default ResponseEntity<Void> testInlineAdditionalProperties( Map<String, String> requestBody) {
|
||||
default ResponseEntity<Void> testInlineAdditionalProperties(Map<String, String> requestBody) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -176,8 +152,8 @@ public interface FakeApiDelegate {
|
||||
/**
|
||||
* @see FakeApi#testJsonFormData
|
||||
*/
|
||||
default ResponseEntity<Void> testJsonFormData( String param,
|
||||
String param2) {
|
||||
default ResponseEntity<Void> testJsonFormData(String param,
|
||||
String param2) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -185,9 +161,9 @@ public interface FakeApiDelegate {
|
||||
/**
|
||||
* @see FakeApi#uploadFileWithRequiredFile
|
||||
*/
|
||||
default ResponseEntity<ModelApiResponse> uploadFileWithRequiredFile( Long petId,
|
||||
default ResponseEntity<ModelApiResponse> uploadFileWithRequiredFile(Long petId,
|
||||
MultipartFile requiredFile,
|
||||
String additionalMetadata) {
|
||||
String additionalMetadata) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
|
||||
@@ -26,7 +26,7 @@ public interface FakeClassnameTestApiDelegate {
|
||||
/**
|
||||
* @see FakeClassnameTestApi#testClassname
|
||||
*/
|
||||
default ResponseEntity<Client> testClassname( Client client) {
|
||||
default ResponseEntity<Client> testClassname(Client client) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
|
||||
@@ -76,7 +76,7 @@ public interface PetApi {
|
||||
@RequestMapping(value = "/pet/findByStatus",
|
||||
produces = { "application/xml", "application/json" },
|
||||
method = RequestMethod.GET)
|
||||
default ResponseEntity<List<Pet>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold") @Valid @RequestParam(value = "status", required = true) List<String> status) {
|
||||
default ResponseEntity<List<Pet>> findPetsByStatus(@NotNull @ApiParam(value = "Status values that need to be considered for filter", required = true, allowableValues = "available, pending, sold", defaultValue = "new ArrayList<>()") @Valid @RequestParam(value = "status", required = true, defaultValue="new ArrayList<>()") List<String> status) {
|
||||
return getDelegate().findPetsByStatus(status);
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public interface PetApi {
|
||||
@RequestMapping(value = "/pet/findByTags",
|
||||
produces = { "application/xml", "application/json" },
|
||||
method = RequestMethod.GET)
|
||||
default ResponseEntity<List<Pet>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) List<String> tags) {
|
||||
default ResponseEntity<List<Pet>> findPetsByTags(@NotNull @ApiParam(value = "Tags to filter by", required = true, defaultValue = "new ArrayList<>()") @Valid @RequestParam(value = "tags", required = true, defaultValue="new ArrayList<>()") List<String> tags) {
|
||||
return getDelegate().findPetsByTags(tags);
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ public interface PetApi {
|
||||
@RequestMapping(value = "/pet/{petId}",
|
||||
consumes = { "application/x-www-form-urlencoded" },
|
||||
method = RequestMethod.POST)
|
||||
default ResponseEntity<Void> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet", defaultValue="null") @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet", defaultValue="null") @RequestParam(value="status", required=false) String status) {
|
||||
default ResponseEntity<Void> updatePetWithForm(@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Updated name of the pet") @RequestParam(value="name", required=false) String name,@ApiParam(value = "Updated status of the pet") @RequestParam(value="status", required=false) String status) {
|
||||
return getDelegate().updatePetWithForm(petId, name, status);
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ public interface PetApi {
|
||||
produces = { "application/json" },
|
||||
consumes = { "multipart/form-data" },
|
||||
method = RequestMethod.POST)
|
||||
default ResponseEntity<ModelApiResponse> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server", defaultValue="null") @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file detail") @Valid @RequestPart("file") MultipartFile file) {
|
||||
default ResponseEntity<ModelApiResponse> uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathVariable("petId") Long petId,@ApiParam(value = "Additional data to pass to server") @RequestParam(value="additionalMetadata", required=false) String additionalMetadata,@ApiParam(value = "file detail") @Valid @RequestPart("file") MultipartFile file) {
|
||||
return getDelegate().uploadFile(petId, additionalMetadata, file);
|
||||
}
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ public interface PetApiDelegate {
|
||||
/**
|
||||
* @see PetApi#addPet
|
||||
*/
|
||||
default ResponseEntity<Void> addPet( Pet pet) {
|
||||
default ResponseEntity<Void> addPet(Pet pet) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -36,8 +36,8 @@ public interface PetApiDelegate {
|
||||
/**
|
||||
* @see PetApi#deletePet
|
||||
*/
|
||||
default ResponseEntity<Void> deletePet( Long petId,
|
||||
String apiKey) {
|
||||
default ResponseEntity<Void> deletePet(Long petId,
|
||||
String apiKey) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -45,7 +45,7 @@ public interface PetApiDelegate {
|
||||
/**
|
||||
* @see PetApi#findPetsByStatus
|
||||
*/
|
||||
default ResponseEntity<List<Pet>> findPetsByStatus( List<String> status) {
|
||||
default ResponseEntity<List<Pet>> findPetsByStatus(List<String> status) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
@@ -65,7 +65,7 @@ public interface PetApiDelegate {
|
||||
/**
|
||||
* @see PetApi#findPetsByTags
|
||||
*/
|
||||
default ResponseEntity<List<Pet>> findPetsByTags( List<String> tags) {
|
||||
default ResponseEntity<List<Pet>> findPetsByTags(List<String> tags) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
@@ -85,7 +85,7 @@ public interface PetApiDelegate {
|
||||
/**
|
||||
* @see PetApi#getPetById
|
||||
*/
|
||||
default ResponseEntity<Pet> getPetById( Long petId) {
|
||||
default ResponseEntity<Pet> getPetById(Long petId) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
@@ -105,7 +105,7 @@ public interface PetApiDelegate {
|
||||
/**
|
||||
* @see PetApi#updatePet
|
||||
*/
|
||||
default ResponseEntity<Void> updatePet( Pet pet) {
|
||||
default ResponseEntity<Void> updatePet(Pet pet) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -113,9 +113,9 @@ public interface PetApiDelegate {
|
||||
/**
|
||||
* @see PetApi#updatePetWithForm
|
||||
*/
|
||||
default ResponseEntity<Void> updatePetWithForm( Long petId,
|
||||
String name,
|
||||
String status) {
|
||||
default ResponseEntity<Void> updatePetWithForm(Long petId,
|
||||
String name,
|
||||
String status) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -123,8 +123,8 @@ public interface PetApiDelegate {
|
||||
/**
|
||||
* @see PetApi#uploadFile
|
||||
*/
|
||||
default ResponseEntity<ModelApiResponse> uploadFile( Long petId,
|
||||
String additionalMetadata,
|
||||
default ResponseEntity<ModelApiResponse> uploadFile(Long petId,
|
||||
String additionalMetadata,
|
||||
MultipartFile file) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
|
||||
@@ -27,7 +27,7 @@ public interface StoreApiDelegate {
|
||||
/**
|
||||
* @see StoreApi#deleteOrder
|
||||
*/
|
||||
default ResponseEntity<Void> deleteOrder( String orderId) {
|
||||
default ResponseEntity<Void> deleteOrder(String orderId) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -43,7 +43,7 @@ public interface StoreApiDelegate {
|
||||
/**
|
||||
* @see StoreApi#getOrderById
|
||||
*/
|
||||
default ResponseEntity<Order> getOrderById( Long orderId) {
|
||||
default ResponseEntity<Order> getOrderById(Long orderId) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
@@ -63,7 +63,7 @@ public interface StoreApiDelegate {
|
||||
/**
|
||||
* @see StoreApi#placeOrder
|
||||
*/
|
||||
default ResponseEntity<Order> placeOrder( Order order) {
|
||||
default ResponseEntity<Order> placeOrder(Order order) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
|
||||
@@ -27,7 +27,7 @@ public interface UserApiDelegate {
|
||||
/**
|
||||
* @see UserApi#createUser
|
||||
*/
|
||||
default ResponseEntity<Void> createUser( User user) {
|
||||
default ResponseEntity<Void> createUser(User user) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -35,7 +35,7 @@ public interface UserApiDelegate {
|
||||
/**
|
||||
* @see UserApi#createUsersWithArrayInput
|
||||
*/
|
||||
default ResponseEntity<Void> createUsersWithArrayInput( List<User> user) {
|
||||
default ResponseEntity<Void> createUsersWithArrayInput(List<User> user) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -43,7 +43,7 @@ public interface UserApiDelegate {
|
||||
/**
|
||||
* @see UserApi#createUsersWithListInput
|
||||
*/
|
||||
default ResponseEntity<Void> createUsersWithListInput( List<User> user) {
|
||||
default ResponseEntity<Void> createUsersWithListInput(List<User> user) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -51,7 +51,7 @@ public interface UserApiDelegate {
|
||||
/**
|
||||
* @see UserApi#deleteUser
|
||||
*/
|
||||
default ResponseEntity<Void> deleteUser( String username) {
|
||||
default ResponseEntity<Void> deleteUser(String username) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -59,7 +59,7 @@ public interface UserApiDelegate {
|
||||
/**
|
||||
* @see UserApi#getUserByName
|
||||
*/
|
||||
default ResponseEntity<User> getUserByName( String username) {
|
||||
default ResponseEntity<User> getUserByName(String username) {
|
||||
getRequest().ifPresent(request -> {
|
||||
for (MediaType mediaType: MediaType.parseMediaTypes(request.getHeader("Accept"))) {
|
||||
if (mediaType.isCompatibleWith(MediaType.valueOf("application/json"))) {
|
||||
@@ -79,8 +79,8 @@ public interface UserApiDelegate {
|
||||
/**
|
||||
* @see UserApi#loginUser
|
||||
*/
|
||||
default ResponseEntity<String> loginUser( String username,
|
||||
String password) {
|
||||
default ResponseEntity<String> loginUser(String username,
|
||||
String password) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
@@ -96,8 +96,8 @@ public interface UserApiDelegate {
|
||||
/**
|
||||
* @see UserApi#updateUser
|
||||
*/
|
||||
default ResponseEntity<Void> updateUser( String username,
|
||||
User user) {
|
||||
default ResponseEntity<Void> updateUser(String username,
|
||||
User user) {
|
||||
return new ResponseEntity<>(HttpStatus.NOT_IMPLEMENTED);
|
||||
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class Animal {
|
||||
@JsonProperty("className")
|
||||
private String className = null;
|
||||
private String className;
|
||||
|
||||
@JsonProperty("color")
|
||||
private String color = "red";
|
||||
|
||||
@@ -14,22 +14,22 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class Capitalization {
|
||||
@JsonProperty("smallCamel")
|
||||
private String smallCamel = null;
|
||||
private String smallCamel;
|
||||
|
||||
@JsonProperty("CapitalCamel")
|
||||
private String capitalCamel = null;
|
||||
private String capitalCamel;
|
||||
|
||||
@JsonProperty("small_Snake")
|
||||
private String smallSnake = null;
|
||||
private String smallSnake;
|
||||
|
||||
@JsonProperty("Capital_Snake")
|
||||
private String capitalSnake = null;
|
||||
private String capitalSnake;
|
||||
|
||||
@JsonProperty("SCA_ETH_Flow_Points")
|
||||
private String scAETHFlowPoints = null;
|
||||
private String scAETHFlowPoints;
|
||||
|
||||
@JsonProperty("ATT_NAME")
|
||||
private String ATT_NAME = null;
|
||||
private String ATT_NAME;
|
||||
|
||||
public Capitalization smallCamel(String smallCamel) {
|
||||
this.smallCamel = smallCamel;
|
||||
|
||||
@@ -15,7 +15,7 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class Cat extends Animal {
|
||||
@JsonProperty("declawed")
|
||||
private Boolean declawed = null;
|
||||
private Boolean declawed;
|
||||
|
||||
public Cat declawed(Boolean declawed) {
|
||||
this.declawed = declawed;
|
||||
|
||||
@@ -14,10 +14,10 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class Category {
|
||||
@JsonProperty("id")
|
||||
private Long id = null;
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name = null;
|
||||
private String name;
|
||||
|
||||
public Category id(Long id) {
|
||||
this.id = id;
|
||||
|
||||
@@ -15,7 +15,7 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class ClassModel {
|
||||
@JsonProperty("_class")
|
||||
private String propertyClass = null;
|
||||
private String propertyClass;
|
||||
|
||||
public ClassModel propertyClass(String propertyClass) {
|
||||
this.propertyClass = propertyClass;
|
||||
|
||||
@@ -14,7 +14,7 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class Client {
|
||||
@JsonProperty("client")
|
||||
private String client = null;
|
||||
private String client;
|
||||
|
||||
public Client client(String client) {
|
||||
this.client = client;
|
||||
|
||||
@@ -15,7 +15,7 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class Dog extends Animal {
|
||||
@JsonProperty("breed")
|
||||
private String breed = null;
|
||||
private String breed;
|
||||
|
||||
public Dog breed(String breed) {
|
||||
this.breed = breed;
|
||||
|
||||
@@ -48,7 +48,7 @@ public class EnumArrays {
|
||||
}
|
||||
|
||||
@JsonProperty("just_symbol")
|
||||
private JustSymbolEnum justSymbol = null;
|
||||
private JustSymbolEnum justSymbol;
|
||||
|
||||
/**
|
||||
* Gets or Sets arrayEnum
|
||||
|
||||
@@ -49,7 +49,7 @@ public class EnumTest {
|
||||
}
|
||||
|
||||
@JsonProperty("enum_string")
|
||||
private EnumStringEnum enumString = null;
|
||||
private EnumStringEnum enumString;
|
||||
|
||||
/**
|
||||
* Gets or Sets enumStringRequired
|
||||
@@ -85,7 +85,7 @@ public class EnumTest {
|
||||
}
|
||||
|
||||
@JsonProperty("enum_string_required")
|
||||
private EnumStringRequiredEnum enumStringRequired = null;
|
||||
private EnumStringRequiredEnum enumStringRequired;
|
||||
|
||||
/**
|
||||
* Gets or Sets enumInteger
|
||||
@@ -119,7 +119,7 @@ public class EnumTest {
|
||||
}
|
||||
|
||||
@JsonProperty("enum_integer")
|
||||
private EnumIntegerEnum enumInteger = null;
|
||||
private EnumIntegerEnum enumInteger;
|
||||
|
||||
/**
|
||||
* Gets or Sets enumNumber
|
||||
@@ -153,7 +153,7 @@ public class EnumTest {
|
||||
}
|
||||
|
||||
@JsonProperty("enum_number")
|
||||
private EnumNumberEnum enumNumber = null;
|
||||
private EnumNumberEnum enumNumber;
|
||||
|
||||
@JsonProperty("outerEnum")
|
||||
private OuterEnum outerEnum = null;
|
||||
|
||||
@@ -19,43 +19,43 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class FormatTest {
|
||||
@JsonProperty("integer")
|
||||
private Integer integer = null;
|
||||
private Integer integer;
|
||||
|
||||
@JsonProperty("int32")
|
||||
private Integer int32 = null;
|
||||
private Integer int32;
|
||||
|
||||
@JsonProperty("int64")
|
||||
private Long int64 = null;
|
||||
private Long int64;
|
||||
|
||||
@JsonProperty("number")
|
||||
private BigDecimal number = null;
|
||||
private BigDecimal number;
|
||||
|
||||
@JsonProperty("float")
|
||||
private Float _float = null;
|
||||
private Float _float;
|
||||
|
||||
@JsonProperty("double")
|
||||
private Double _double = null;
|
||||
private Double _double;
|
||||
|
||||
@JsonProperty("string")
|
||||
private String string = null;
|
||||
private String string;
|
||||
|
||||
@JsonProperty("byte")
|
||||
private byte[] _byte = null;
|
||||
private byte[] _byte;
|
||||
|
||||
@JsonProperty("binary")
|
||||
private Resource binary = null;
|
||||
private Resource binary;
|
||||
|
||||
@JsonProperty("date")
|
||||
private LocalDate date = null;
|
||||
private LocalDate date;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
private OffsetDateTime dateTime = null;
|
||||
private OffsetDateTime dateTime;
|
||||
|
||||
@JsonProperty("uuid")
|
||||
private UUID uuid = null;
|
||||
private UUID uuid;
|
||||
|
||||
@JsonProperty("password")
|
||||
private String password = null;
|
||||
private String password;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
this.integer = integer;
|
||||
|
||||
@@ -14,10 +14,10 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class HasOnlyReadOnly {
|
||||
@JsonProperty("bar")
|
||||
private String bar = null;
|
||||
private String bar;
|
||||
|
||||
@JsonProperty("foo")
|
||||
private String foo = null;
|
||||
private String foo;
|
||||
|
||||
public HasOnlyReadOnly bar(String bar) {
|
||||
this.bar = bar;
|
||||
|
||||
@@ -9,7 +9,6 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.openapitools.model.StringBooleanMap;
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.*;
|
||||
|
||||
@@ -62,7 +61,8 @@ public class MapTest {
|
||||
private Map<String, Boolean> directMap = null;
|
||||
|
||||
@JsonProperty("indirect_map")
|
||||
private StringBooleanMap indirectMap = null;
|
||||
@Valid
|
||||
private Map<String, Boolean> indirectMap = null;
|
||||
|
||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||
this.mapMapOfString = mapMapOfString;
|
||||
@@ -149,24 +149,31 @@ public class MapTest {
|
||||
this.directMap = directMap;
|
||||
}
|
||||
|
||||
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||
this.indirectMap = indirectMap;
|
||||
return this;
|
||||
}
|
||||
|
||||
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
||||
if (this.indirectMap == null) {
|
||||
this.indirectMap = new HashMap<>();
|
||||
}
|
||||
this.indirectMap.put(key, indirectMapItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get indirectMap
|
||||
* @return indirectMap
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
|
||||
@Valid
|
||||
|
||||
public StringBooleanMap getIndirectMap() {
|
||||
public Map<String, Boolean> getIndirectMap() {
|
||||
return indirectMap;
|
||||
}
|
||||
|
||||
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||
public void setIndirectMap(Map<String, Boolean> indirectMap) {
|
||||
this.indirectMap = indirectMap;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,10 +20,10 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
@JsonProperty("uuid")
|
||||
private UUID uuid = null;
|
||||
private UUID uuid;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
private OffsetDateTime dateTime = null;
|
||||
private OffsetDateTime dateTime;
|
||||
|
||||
@JsonProperty("map")
|
||||
@Valid
|
||||
|
||||
@@ -15,10 +15,10 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class Model200Response {
|
||||
@JsonProperty("name")
|
||||
private Integer name = null;
|
||||
private Integer name;
|
||||
|
||||
@JsonProperty("class")
|
||||
private String propertyClass = null;
|
||||
private String propertyClass;
|
||||
|
||||
public Model200Response name(Integer name) {
|
||||
this.name = name;
|
||||
|
||||
@@ -14,13 +14,13 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class ModelApiResponse {
|
||||
@JsonProperty("code")
|
||||
private Integer code = null;
|
||||
private Integer code;
|
||||
|
||||
@JsonProperty("type")
|
||||
private String type = null;
|
||||
private String type;
|
||||
|
||||
@JsonProperty("message")
|
||||
private String message = null;
|
||||
private String message;
|
||||
|
||||
public ModelApiResponse code(Integer code) {
|
||||
this.code = code;
|
||||
|
||||
@@ -15,7 +15,7 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class ModelReturn {
|
||||
@JsonProperty("return")
|
||||
private Integer _return = null;
|
||||
private Integer _return;
|
||||
|
||||
public ModelReturn _return(Integer _return) {
|
||||
this._return = _return;
|
||||
|
||||
@@ -15,16 +15,16 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class Name {
|
||||
@JsonProperty("name")
|
||||
private Integer name = null;
|
||||
private Integer name;
|
||||
|
||||
@JsonProperty("snake_case")
|
||||
private Integer snakeCase = null;
|
||||
private Integer snakeCase;
|
||||
|
||||
@JsonProperty("property")
|
||||
private String property = null;
|
||||
private String property;
|
||||
|
||||
@JsonProperty("123Number")
|
||||
private Integer _123number = null;
|
||||
private Integer _123number;
|
||||
|
||||
public Name name(Integer name) {
|
||||
this.name = name;
|
||||
|
||||
@@ -15,7 +15,7 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class NumberOnly {
|
||||
@JsonProperty("JustNumber")
|
||||
private BigDecimal justNumber = null;
|
||||
private BigDecimal justNumber;
|
||||
|
||||
public NumberOnly justNumber(BigDecimal justNumber) {
|
||||
this.justNumber = justNumber;
|
||||
|
||||
@@ -16,16 +16,16 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class Order {
|
||||
@JsonProperty("id")
|
||||
private Long id = null;
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("petId")
|
||||
private Long petId = null;
|
||||
private Long petId;
|
||||
|
||||
@JsonProperty("quantity")
|
||||
private Integer quantity = null;
|
||||
private Integer quantity;
|
||||
|
||||
@JsonProperty("shipDate")
|
||||
private OffsetDateTime shipDate = null;
|
||||
private OffsetDateTime shipDate;
|
||||
|
||||
/**
|
||||
* Order Status
|
||||
@@ -61,7 +61,7 @@ public class Order {
|
||||
}
|
||||
|
||||
@JsonProperty("status")
|
||||
private StatusEnum status = null;
|
||||
private StatusEnum status;
|
||||
|
||||
@JsonProperty("complete")
|
||||
private Boolean complete = false;
|
||||
|
||||
@@ -15,13 +15,13 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class OuterComposite {
|
||||
@JsonProperty("my_number")
|
||||
private BigDecimal myNumber = null;
|
||||
private BigDecimal myNumber;
|
||||
|
||||
@JsonProperty("my_string")
|
||||
private String myString = null;
|
||||
private String myString;
|
||||
|
||||
@JsonProperty("my_boolean")
|
||||
private Boolean myBoolean = null;
|
||||
private Boolean myBoolean;
|
||||
|
||||
public OuterComposite myNumber(BigDecimal myNumber) {
|
||||
this.myNumber = myNumber;
|
||||
|
||||
@@ -19,13 +19,13 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class Pet {
|
||||
@JsonProperty("id")
|
||||
private Long id = null;
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("category")
|
||||
private Category category = null;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name = null;
|
||||
private String name;
|
||||
|
||||
@JsonProperty("photoUrls")
|
||||
@Valid
|
||||
@@ -69,7 +69,7 @@ public class Pet {
|
||||
}
|
||||
|
||||
@JsonProperty("status")
|
||||
private StatusEnum status = null;
|
||||
private StatusEnum status;
|
||||
|
||||
public Pet id(Long id) {
|
||||
this.id = id;
|
||||
|
||||
@@ -14,10 +14,10 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class ReadOnlyFirst {
|
||||
@JsonProperty("bar")
|
||||
private String bar = null;
|
||||
private String bar;
|
||||
|
||||
@JsonProperty("baz")
|
||||
private String baz = null;
|
||||
private String baz;
|
||||
|
||||
public ReadOnlyFirst bar(String bar) {
|
||||
this.bar = bar;
|
||||
|
||||
@@ -14,7 +14,7 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class SpecialModelName {
|
||||
@JsonProperty("$special[property.name]")
|
||||
private Long $specialPropertyName = null;
|
||||
private Long $specialPropertyName;
|
||||
|
||||
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
||||
this.$specialPropertyName = $specialPropertyName;
|
||||
|
||||
@@ -14,10 +14,10 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class Tag {
|
||||
@JsonProperty("id")
|
||||
private Long id = null;
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name = null;
|
||||
private String name;
|
||||
|
||||
public Tag id(Long id) {
|
||||
this.id = id;
|
||||
|
||||
@@ -14,28 +14,28 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class User {
|
||||
@JsonProperty("id")
|
||||
private Long id = null;
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("username")
|
||||
private String username = null;
|
||||
private String username;
|
||||
|
||||
@JsonProperty("firstName")
|
||||
private String firstName = null;
|
||||
private String firstName;
|
||||
|
||||
@JsonProperty("lastName")
|
||||
private String lastName = null;
|
||||
private String lastName;
|
||||
|
||||
@JsonProperty("email")
|
||||
private String email = null;
|
||||
private String email;
|
||||
|
||||
@JsonProperty("password")
|
||||
private String password = null;
|
||||
private String password;
|
||||
|
||||
@JsonProperty("phone")
|
||||
private String phone = null;
|
||||
private String phone;
|
||||
|
||||
@JsonProperty("userStatus")
|
||||
private Integer userStatus = null;
|
||||
private Integer userStatus;
|
||||
|
||||
public User id(Long id) {
|
||||
this.id = id;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
springfox.documentation.swagger.v2.path=/api-docs
|
||||
server.port=80
|
||||
spring.jackson.date-format=org.openapitools.RFC3339DateFormat
|
||||
spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false
|
||||
spring.jackson.serialization.WRITE_DATES_AS_TIMESTAMPS=false
|
||||
|
||||
Reference in New Issue
Block a user