You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/server/petstore/kotlin-springboot-x-kotlin-implements/src/main/kotlin/org/openapitools/api/PetApi.kt
funfindPetsByStatus(@NotNull @ApiParam(value ="Status values that need to be considered for filter", required =true, allowableValues ="available, pending, sold") @Valid @RequestParam(value ="status", required =true) status: kotlin.collections.List<kotlin.String>, @ApiParam(hidden =true) request: javax.servlet.http.HttpServletRequest): ResponseEntity<List<Pet>>
89
+
90
+
91
+
@ApiOperation(
92
+
value ="Finds Pets by tags",
93
+
nickname ="findPetsByTags",
94
+
notes ="Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.",
95
+
response =Pet::class,
96
+
responseContainer ="List",
97
+
authorizations = [Authorization(value ="petstore_auth", scopes = [AuthorizationScope(scope ="write:pets", description ="modify pets in your account"), AuthorizationScope(scope ="read:pets", description ="read your pets")])])
98
+
@ApiResponses(
99
+
value = [ApiResponse(code =200, message ="successful operation", response =Pet::class, responseContainer ="List"), ApiResponse(code =400, message ="Invalid tag value")])
value ="Updates a pet in the store with form data",
141
+
nickname ="updatePetWithForm",
142
+
notes ="",
143
+
authorizations = [Authorization(value ="petstore_auth", scopes = [AuthorizationScope(scope ="write:pets", description ="modify pets in your account"), AuthorizationScope(scope ="read:pets", description ="read your pets")])])
144
+
@ApiResponses(
145
+
value = [ApiResponse(code =405, message ="Invalid input")])
158
146
@RequestMapping(
159
147
method = [RequestMethod.POST],
160
148
value = ["/pet/{petId}"],
161
149
consumes = ["application/x-www-form-urlencoded"]
162
150
)
163
-
funupdatePetWithForm(@Parameter(description ="ID of pet that needs to be updated", required =true) @PathVariable("petId") petId: kotlin.Long,@Parameter(description ="Updated name of the pet") @Valid @RequestParam(value ="name", required =false) name: kotlin.String? ,@Parameter(description ="Updated status of the pet") @Valid @RequestParam(value ="status", required =false) status: kotlin.String? , @Parameter(hidden =true) request: javax.servlet.http.HttpServletRequest): ResponseEntity<Unit>
funupdatePetWithForm(@ApiParam(value ="ID of pet that needs to be updated", required =true) @PathVariable("petId") petId: kotlin.Long,@ApiParam(value ="Updated name of the pet") @Valid @RequestParam(value ="name", required =false) name: kotlin.String? ,@ApiParam(value ="Updated status of the pet") @Valid @RequestParam(value ="status", required =false) status: kotlin.String? , @ApiParam(hidden =true) request: javax.servlet.http.HttpServletRequest): ResponseEntity<Unit>
152
+
153
+
154
+
@ApiOperation(
155
+
value ="Uploads an image",
156
+
nickname ="uploadFile",
157
+
notes ="",
158
+
response =ModelApiResponse::class,
159
+
authorizations = [Authorization(value ="petstore_auth", scopes = [AuthorizationScope(scope ="write:pets", description ="modify pets in your account"), AuthorizationScope(scope ="read:pets", description ="read your pets")])])
160
+
@ApiResponses(
161
+
value = [ApiResponse(code =200, message ="successful operation", response =ModelApiResponse::class)])
175
162
@RequestMapping(
176
163
method = [RequestMethod.POST],
177
164
value = ["/pet/{petId}/uploadImage"],
178
165
produces = ["application/json"],
179
166
consumes = ["multipart/form-data"]
180
167
)
181
-
funuploadFile(@Parameter(description="ID of pet to update", required =true) @PathVariable("petId") petId: kotlin.Long,@Parameter(description="") @Valid @RequestParam(value ="additionalMetadata", required =false) additionalMetadata: kotlin.String? ,@Parameter(description="") @Valid @RequestPart("file", required =false) file: org.springframework.web.multipart.MultipartFile, @Parameter(hidden =true) request: javax.servlet.http.HttpServletRequest): ResponseEntity<ModelApiResponse>
168
+
funuploadFile(@ApiParam(value="ID of pet to update", required =true) @PathVariable("petId") petId: kotlin.Long,@ApiParam(value="") @Valid @RequestParam(value ="additionalMetadata", required =false) additionalMetadata: kotlin.String? ,@ApiParam(value="file detail") @Valid @RequestPart("file", required =false) file: org.springframework.web.multipart.MultipartFile, @ApiParam(hidden =true) request: javax.servlet.http.HttpServletRequest): ResponseEntity<ModelApiResponse>
0 commit comments