|
| 1 | +package org.openapitools.api; |
| 2 | + |
| 3 | +import org.springframework.lang.Nullable; |
| 4 | +import org.springframework.data.domain.Pageable; |
| 5 | +import org.springframework.data.web.PageableDefault; |
| 6 | +import org.openapitools.model.Pet; |
| 7 | +import org.openapitools.model.PetSort; |
| 8 | +import org.openapitools.model.PetSortEnum; |
| 9 | +import org.springframework.data.domain.Sort; |
| 10 | +import org.springframework.data.web.SortDefault; |
| 11 | +import org.openapitools.configuration.ValidPageable; |
| 12 | +import org.openapitools.configuration.ValidSort; |
| 13 | + |
| 14 | + |
| 15 | +import org.springframework.beans.factory.annotation.Autowired; |
| 16 | +import org.springframework.http.HttpStatus; |
| 17 | +import org.springframework.http.MediaType; |
| 18 | +import org.springframework.http.ResponseEntity; |
| 19 | +import org.springframework.stereotype.Controller; |
| 20 | +import org.springframework.web.bind.annotation.PathVariable; |
| 21 | +import org.springframework.web.bind.annotation.RequestBody; |
| 22 | +import org.springframework.web.bind.annotation.RequestHeader; |
| 23 | +import org.springframework.web.bind.annotation.RequestMapping; |
| 24 | +import org.springframework.web.bind.annotation.CookieValue; |
| 25 | +import org.springframework.web.bind.annotation.RequestParam; |
| 26 | +import org.springframework.web.bind.annotation.RequestPart; |
| 27 | +import org.springframework.web.multipart.MultipartFile; |
| 28 | +import org.springframework.web.context.request.NativeWebRequest; |
| 29 | + |
| 30 | +import jakarta.validation.constraints.*; |
| 31 | +import jakarta.validation.Valid; |
| 32 | + |
| 33 | +import java.util.List; |
| 34 | +import java.util.Map; |
| 35 | +import java.util.Optional; |
| 36 | +import jakarta.annotation.Generated; |
| 37 | + |
| 38 | +@Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-04-15T20:51:04.118456741Z[UTC]", comments = "Generator version: 7.22.0-SNAPSHOT") |
| 39 | +@Controller |
| 40 | +public class PetApiController implements PetApi { |
| 41 | + |
| 42 | + @Nullable |
| 43 | + private final NativeWebRequest request; |
| 44 | + |
| 45 | + @Autowired |
| 46 | + public PetApiController(@Nullable NativeWebRequest request) { |
| 47 | + this.request = request; |
| 48 | + } |
| 49 | + |
| 50 | + @Override |
| 51 | + public Optional<NativeWebRequest> getRequest() { |
| 52 | + return Optional.ofNullable(request); |
| 53 | + } |
| 54 | + |
| 55 | +} |
0 commit comments