@RestController
@RequestMapping(value="/category-types")
public class CategoryTypeController
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
CategoryType |
create(CategoryTypeDTO categoryType) |
void |
deleteById(java.lang.Integer id) |
CategoryType |
getById(java.lang.Integer id) |
java.util.List<CategoryType> |
getCategoryTypes() |
CategoryType |
update(CategoryTypeDTO categoryType) |
@GetMapping public java.util.List<CategoryType> getCategoryTypes()
@GetMapping(value="/{id}")
public CategoryType getById(@PathVariable
java.lang.Integer id)
@PostMapping public CategoryType create(@RequestBody CategoryTypeDTO categoryType)
@PutMapping public CategoryType update(@RequestBody CategoryTypeDTO categoryType)
@DeleteMapping(value="/{id}")
public void deleteById(@PathVariable
java.lang.Integer id)