Class CategoryController


@RestController @RequestMapping("/api") public class CategoryController extends DTOListMapping<Category,CategoryDTO>
Controller handling HTTP requests related to Category.
Version:
0.4.1
Author:
Lorenzo Occhipinti, Khalil Mohamed Khalil
  • Field Details

    • categoryRepository

      private final CategoryRepository categoryRepository
      Instance of AnswerRepository that will be used to access the db.
  • Constructor Details

    • CategoryController

      @Autowired public CategoryController(CategoryRepository categoryRepository, org.modelmapper.ModelMapper modelMapper)
  • Method Details