|
| 1 | +/** |
| 2 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.16.0-SNAPSHOT). |
| 3 | + * https://openapi-generator.tech |
| 4 | + * Do not edit the class manually. |
| 5 | +*/ |
| 6 | +package org.openapitools.api |
| 7 | + |
| 8 | +import org.openapitools.model.ModelApiResponse |
| 9 | +import org.openapitools.model.Pet |
| 10 | +import org.springframework.http.HttpStatus |
| 11 | +import org.springframework.http.MediaType |
| 12 | +import org.springframework.http.ResponseEntity |
| 13 | + |
| 14 | +import org.springframework.web.bind.annotation.* |
| 15 | +import org.springframework.validation.annotation.Validated |
| 16 | +import org.springframework.web.context.request.NativeWebRequest |
| 17 | +import org.springframework.beans.factory.annotation.Autowired |
| 18 | + |
| 19 | +import javax.validation.constraints.DecimalMax |
| 20 | +import javax.validation.constraints.DecimalMin |
| 21 | +import javax.validation.constraints.Email |
| 22 | +import javax.validation.constraints.Max |
| 23 | +import javax.validation.constraints.Min |
| 24 | +import javax.validation.constraints.NotNull |
| 25 | +import javax.validation.constraints.Pattern |
| 26 | +import javax.validation.constraints.Size |
| 27 | +import javax.validation.Valid |
| 28 | + |
| 29 | +import kotlin.collections.List |
| 30 | +import kotlin.collections.Map |
| 31 | + |
| 32 | +@RestController |
| 33 | +@Validated |
| 34 | +interface PetApi { |
| 35 | + |
| 36 | + |
| 37 | + @RequestMapping( |
| 38 | + method = [RequestMethod.POST], |
| 39 | + value = ["/pet"], |
| 40 | + consumes = ["application/json"] |
| 41 | + ) |
| 42 | + fun addPet( @Valid @RequestBody pet: Pet): ResponseEntity<Unit> |
| 43 | + |
| 44 | + |
| 45 | + @RequestMapping( |
| 46 | + method = [RequestMethod.DELETE], |
| 47 | + value = ["/pet/{petId}"] |
| 48 | + ) |
| 49 | + fun deletePet( @PathVariable("petId") petId: kotlin.Long, @RequestHeader(value = "api_key", required = false) apiKey: kotlin.String?): ResponseEntity<Unit> |
| 50 | + |
| 51 | + |
| 52 | + @RequestMapping( |
| 53 | + method = [RequestMethod.GET], |
| 54 | + value = ["/pet/findByStatus"], |
| 55 | + produces = ["application/json"] |
| 56 | + ) |
| 57 | + fun findPetsByStatus(@NotNull @Valid @RequestParam(value = "status", required = true) status: kotlin.collections.List<kotlin.String>): ResponseEntity<List<Pet>> |
| 58 | + |
| 59 | + |
| 60 | + @RequestMapping( |
| 61 | + method = [RequestMethod.GET], |
| 62 | + value = ["/pet/findByTags"], |
| 63 | + produces = ["application/json"] |
| 64 | + ) |
| 65 | + fun findPetsByTags(@NotNull @Valid @RequestParam(value = "tags", required = true) tags: kotlin.collections.List<kotlin.String>): ResponseEntity<List<Pet>> |
| 66 | + |
| 67 | + |
| 68 | + @RequestMapping( |
| 69 | + method = [RequestMethod.GET], |
| 70 | + value = ["/pet/{petId}"], |
| 71 | + produces = ["application/json"] |
| 72 | + ) |
| 73 | + fun getPetById( @PathVariable("petId") petId: kotlin.Long): ResponseEntity<Pet> |
| 74 | + |
| 75 | + |
| 76 | + @RequestMapping( |
| 77 | + method = [RequestMethod.PUT], |
| 78 | + value = ["/pet"], |
| 79 | + consumes = ["application/json"] |
| 80 | + ) |
| 81 | + fun updatePet( @Valid @RequestBody pet: Pet): ResponseEntity<Unit> |
| 82 | + |
| 83 | + |
| 84 | + @RequestMapping( |
| 85 | + method = [RequestMethod.POST], |
| 86 | + value = ["/pet/{petId}"], |
| 87 | + consumes = ["application/x-www-form-urlencoded"] |
| 88 | + ) |
| 89 | + fun updatePetWithForm( @PathVariable("petId") petId: kotlin.Long, @Valid @RequestParam(value = "name", required = false) name: kotlin.String? , @Valid @RequestParam(value = "status", required = false) status: kotlin.String? ): ResponseEntity<Unit> |
| 90 | + |
| 91 | + |
| 92 | + @RequestMapping( |
| 93 | + method = [RequestMethod.POST], |
| 94 | + value = ["/pet/{petId}/uploadImage"], |
| 95 | + produces = ["application/json"], |
| 96 | + consumes = ["multipart/form-data"] |
| 97 | + ) |
| 98 | + fun uploadFile( @PathVariable("petId") petId: kotlin.Long, @Valid @RequestParam(value = "additionalMetadata", required = false) additionalMetadata: kotlin.String? , @Valid @RequestPart("file", required = false) file: org.springframework.web.multipart.MultipartFile?): ResponseEntity<ModelApiResponse> |
| 99 | +} |
0 commit comments