Class TaxBandRepo

java.lang.Object
com.example.vehicletaxsystem.repositories.TaxBandRepo

@RestController @RequestMapping("/api/taxband") public class TaxBandRepo extends Object
Repository class linked to tax bands for setting the endpoints to be exposed to the client and calling the service class to handle requests.
  • Field Details

  • Constructor Details

  • Method Details

    • updateTaxBand

      @PostMapping("/super/{id}") public TaxBandDTO updateTaxBand(@PathVariable int id, @RequestBody TaxBandDTO taxBandDTO)
    • findAllTaxBands

      @GetMapping("/admin") public List<TaxBandDTO> findAllTaxBands()
    • findTaxBandById

      @GetMapping("/user/{id}") public TaxBandDTO findTaxBandById(@PathVariable("id") int id)
    • findTaxBandsByDescription

      @GetMapping("/user") public List<TaxBandDTO> findTaxBandsByDescription(String description)