forked from loafle/openapi-generator-original
* first pass * Fix extra new line * adding generator file * Run new.sh script * Fix template directory and ignore failing tests * fixing up content type * adding controller impl * cleanup interface * typo * removing bodytype * adding protos * fixing 2 * Fix headerParamsSimple * removing protos etc. * fixing imports * removing commented code * fixing imports * fixing return * fixing file * adding comment * remove adminapi * move to jakarta * reverting break * fixing httpMethods * pushing mediaTypes * Adds gradle mustache templates * Setup simple build.gradle.kts * Adds basic model.mustache for model generation * fixing summary * fixing summary 2 * Removes unnecesssary line * fixing return type * fixing override * fixing httpcall * Delete proto folder creation * fixing return type * fixing void return type * fixing space * removing reactive * removing imports * Fixing spacing * Fixing tabbing * fixing headers * add comment * Adds unit tests * cleanup * Correct getHelp() description * cleanup 2 * removiing pathParams files * fixup * fixup 3 * removing more files * Adds GitHub Workflow generation * removing form params as not required * Adds tests for OptionsProvider * Renamed file to match * remove whitespace * remove whitespace * adding documentation * adding documentation * removing swagger annotations * adding tests * Adds Guice Module * Grab OpenAPI title to generate module name * Revert "Grab OpenAPI title to generate module name" This reverts commit 9c9b935f5dbee6e0974ebf66b4f611f107df70c2. * Update sample * Removes moduleFileName additional property * adding tests * adding tests 2 * adding tests 3 * adding tests 4 * added media types * re-adding tests * fixing camelcase * fixing mediatypes * default mediatype * adding validation * adding validation * removing swagger * adding gradle dependency * adding gradle dependency * fixing types * fixing return types * fixing tests * final fixes * tweaks * fixing file etc. * Update samples/ folder * fixing jakarta * fixing jakarta 2 * fixing impl * Fix unit tests * fixing jakarta * fixing jakarta 2 * final final final changes * Fix initialization of BigDecimal for default values * update samples, docs * fixing RequestHeader * fixing RequestHeader 2 * fixing RequestHeader 2 * add validateSpec=false * fix pom version --------- Co-authored-by: Guido Arnau <guido@squareup.com> Co-authored-by: William Cheng <wing328hk@gmail.com>
This commit is contained in:
@@ -84,7 +84,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
|
||||
value = ["/pet/findByStatus"],
|
||||
produces = ["application/xml", "application/json"]
|
||||
)
|
||||
suspend fun findPetsByStatus(@NotNull @Parameter(description = "Status values that need to be considered for filter", required = true, schema = Schema(allowableValues = ["available", "pending", "sold"])) @Valid @RequestParam(value = "status", required = true) status: kotlin.collections.List<kotlin.String>): ResponseEntity<List<Pet>> {
|
||||
suspend fun findPetsByStatus( @RequestParam(value = "status", required = true) status: kotlin.collections.List<kotlin.String>): ResponseEntity<List<Pet>> {
|
||||
return ResponseEntity(service.findPetsByStatus(status), HttpStatus.valueOf(200))
|
||||
}
|
||||
|
||||
@@ -102,7 +102,7 @@ class PetApiController(@Autowired(required = true) val service: PetApiService) {
|
||||
value = ["/pet/findByTags"],
|
||||
produces = ["application/xml", "application/json"]
|
||||
)
|
||||
suspend fun findPetsByTags(@NotNull @Parameter(description = "Tags to filter by", required = true) @Valid @RequestParam(value = "tags", required = true) tags: kotlin.collections.List<kotlin.String>): ResponseEntity<List<Pet>> {
|
||||
suspend fun findPetsByTags( @RequestParam(value = "tags", required = true) tags: kotlin.collections.List<kotlin.String>): ResponseEntity<List<Pet>> {
|
||||
return ResponseEntity(service.findPetsByTags(tags), HttpStatus.valueOf(200))
|
||||
}
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ class UserApiController(@Autowired(required = true) val service: UserApiService)
|
||||
value = ["/user/login"],
|
||||
produces = ["application/xml", "application/json"]
|
||||
)
|
||||
suspend fun loginUser(@NotNull @Pattern(regexp="^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$") @Parameter(description = "The user name for login", required = true) @Valid @RequestParam(value = "username", required = true) username: kotlin.String,@NotNull @Parameter(description = "The password for login in clear text", required = true) @Valid @RequestParam(value = "password", required = true) password: kotlin.String): ResponseEntity<kotlin.String> {
|
||||
suspend fun loginUser( @RequestParam(value = "username", required = true) username: kotlin.String, @RequestParam(value = "password", required = true) password: kotlin.String): ResponseEntity<kotlin.String> {
|
||||
return ResponseEntity(service.loginUser(username, password), HttpStatus.valueOf(200))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user