|
| 1 | +/* |
| 2 | + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.22.0-SNAPSHOT). |
| 3 | + * https://openapi-generator.tech |
| 4 | + * Do not edit the class manually. |
| 5 | + */ |
| 6 | +package org.openapitools.api; |
| 7 | + |
| 8 | +import org.springframework.lang.Nullable; |
| 9 | +import org.springframework.data.web.PagedModel; |
| 10 | +import org.openapitools.model.Pet; |
| 11 | +import org.openapitools.model.SearchResult; |
| 12 | +import org.springframework.http.ResponseEntity; |
| 13 | +import org.springframework.validation.annotation.Validated; |
| 14 | +import org.springframework.web.bind.annotation.*; |
| 15 | +import org.springframework.web.multipart.MultipartFile; |
| 16 | + |
| 17 | +import jakarta.validation.Valid; |
| 18 | +import jakarta.validation.constraints.*; |
| 19 | +import java.util.List; |
| 20 | +import java.util.Map; |
| 21 | +import java.util.Optional; |
| 22 | +import jakarta.annotation.Generated; |
| 23 | + |
| 24 | +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", comments = "Generator version: 7.22.0-SNAPSHOT") |
| 25 | +@Validated |
| 26 | +@RequestMapping("${openapi.openAPIPetstorePagedModelSubstitutionTest.base-path:/v2}") |
| 27 | +public interface PetApi { |
| 28 | + |
| 29 | + String PATH_FIND_PETS = "/pets"; |
| 30 | + /** |
| 31 | + * GET /pets : Find pets — returns raw array, no PagedModel replacement |
| 32 | + * |
| 33 | + * @return List of pets (status code 200) |
| 34 | + */ |
| 35 | + @RequestMapping( |
| 36 | + method = RequestMethod.GET, |
| 37 | + value = PetApi.PATH_FIND_PETS, |
| 38 | + produces = { "application/json" } |
| 39 | + ) |
| 40 | + ResponseEntity<List<Pet>> findPets( |
| 41 | + |
| 42 | + ); |
| 43 | + |
| 44 | + |
| 45 | + String PATH_LIST_PETS_PAGED = "/pets/paged"; |
| 46 | + /** |
| 47 | + * GET /pets/paged : List pets using allOf paged form (returns PetPageAllOf) |
| 48 | + * |
| 49 | + * @return Paged list of pets (status code 200) |
| 50 | + */ |
| 51 | + @RequestMapping( |
| 52 | + method = RequestMethod.GET, |
| 53 | + value = PetApi.PATH_LIST_PETS_PAGED, |
| 54 | + produces = { "application/json" } |
| 55 | + ) |
| 56 | + ResponseEntity<PagedModel<Pet>> listPetsPaged( |
| 57 | + |
| 58 | + ); |
| 59 | + |
| 60 | + |
| 61 | + String PATH_SEARCH_PETS = "/pets/search"; |
| 62 | + /** |
| 63 | + * GET /pets/search : Search result with no content array — SearchResult should NOT be suppressed |
| 64 | + * |
| 65 | + * @param q (optional) |
| 66 | + * @return Search result (status code 200) |
| 67 | + */ |
| 68 | + @RequestMapping( |
| 69 | + method = RequestMethod.GET, |
| 70 | + value = PetApi.PATH_SEARCH_PETS, |
| 71 | + produces = { "application/json" } |
| 72 | + ) |
| 73 | + ResponseEntity<SearchResult> searchPets( |
| 74 | + @Valid @RequestParam(value = "q", required = false) @Nullable String q |
| 75 | + ); |
| 76 | + |
| 77 | +} |
0 commit comments