All Known Implementing Classes:
CarsController

@Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen", date="2025-05-03T17:58:20.830298669Z[Etc/UTC]") @Validated public interface CarsApi
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.slf4j.Logger
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<Void>
    addNewCar(@Valid CarForm body)
     
    org.springframework.http.ResponseEntity<Void>
    deactivateCar(@Min(1L) Integer id)
     
    Optional<com.fasterxml.jackson.databind.ObjectMapper>
     
    Optional<jakarta.servlet.http.HttpServletRequest>
     
    org.springframework.http.ResponseEntity<Car>
    loadCar(@Min(1L) Integer id)
     
    org.springframework.http.ResponseEntity<List<Car>>
     
    org.springframework.http.ResponseEntity<Void>
    updateCar(@Min(1L) Integer id, @Valid CarForm body)
     
  • Field Details

    • log

      static final org.slf4j.Logger log
  • Method Details

    • getObjectMapper

      Optional<com.fasterxml.jackson.databind.ObjectMapper> getObjectMapper()
    • getRequest

      Optional<jakarta.servlet.http.HttpServletRequest> getRequest()
    • addNewCar

      @RequestMapping(value="/cars", produces="application/json", consumes="application/json", method=POST) org.springframework.http.ResponseEntity<Void> addNewCar(@Valid @RequestBody @Valid CarForm body)
    • deactivateCar

      @RequestMapping(value="/cars/{id}", produces="application/json", method=DELETE) org.springframework.http.ResponseEntity<Void> deactivateCar(@Min(1L) @PathVariable("id") @Min(1L) Integer id)
    • loadCar

      @RequestMapping(value="/cars/{id}", produces="application/json", method=GET) org.springframework.http.ResponseEntity<Car> loadCar(@Min(1L) @PathVariable("id") @Min(1L) Integer id)
    • loadCars

      @RequestMapping(value="/cars", produces="application/json", method=GET) org.springframework.http.ResponseEntity<List<Car>> loadCars()
    • updateCar

      @RequestMapping(value="/cars/{id}", produces="application/json", consumes="application/json", method=PUT) org.springframework.http.ResponseEntity<Void> updateCar(@Min(1L) @PathVariable("id") @Min(1L) Integer id, @Valid @RequestBody @Valid CarForm body)